Alternative To A Specific Switch Statement

kee nethery kee at kagi.com
Thu Mar 14 14:08:40 EDT 2013


I would do the calc once.
I would make the last one default just in case the calc provides you with something funky.
Kee

__put sin(pAngleInRadians) into sinCalc
__switch
____case sinCalc > 0
______put 1 into tX
______break
____case sinCalc = 0
______put 0 into tX
______break
____default
______put -1 into tX
______break
__end switch






More information about the use-livecode mailing list