On 12/28/2012 12:33 AM, J. Landman Gay wrote:
On 12/27/12 4:26 PM, Richmond wrote:
switch the text of fld "TEKST"
case 1
--do something--
break
case 2
--do something else--
break
case "any other value in fld "TEKST" '
--run around babbling about purple bananas--
break
end switch
has anyone any idea how to effect this sort of situation WITHOUT using a
bunch of nested IF . . . THEN statements instead???
That's what the "default" statement is for:
switch the text of fld "TEKST"
case 1
--do something--
break
case 2
--do something else--
break
default -- everything else
--run around babbling about purple bananas--
break
end switch
However, I don't know if it always works with purple bananas.
Thank you Kee Nethery and Jacque both:
"I says tae her, Misses, quite plain tae be seen,
The duck eggs are white an the drake eggs are green;
How foolish one is, but how wise one may grow,
By making enquiries at Alwinton show."
_______________________________________________
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