DarthReven commented on a Page, Calculator  -  Dec 21, 2004

Novel idea but, this might be alittle better alias calculate { if ($2 == $chr(43)) { echo -a Answer: $calc($1 + $3) | halt } | elseif ($2 == $chr(45)) { echo -a Answer: $calc($1 - 3) | halt } | elseif ($2 == $chr(42)) { echo -a Answer: $calc($1 * $3) | halt } | elseif ($2 == $chr(47)) { echo -a Answer: $calc($1 / $3) | halt } } that covers everything

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.