I was thinking about this yesterday actually, you could make your script even more compact
if (($1 == !heads) || ($1 == !tales)) {
} else { } }
describe $chan flips a coin.
if ($iif($1 == !heads,1,2) == $rand(1,2)) {
You see the way in which I cut the lines back by naming the variables inside the if statement rather than outside?