If there are only two possibly outcomes, wouldn't you use an if statement?
On Mar 15, 2013, at 8:11 AM, "Peter M. Brigham" <pmb...@gmail.com> wrote: > And combining the suggestions, you could do: > > put sin(pAngleInRadians) into sinCalc > switch sinCalc > case 0 > put 0 into tX > break > default > put sinCalc/abs(sinCalc) into tX > end switch _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode