A code style question
Bob Sneidar
bobsneidar at iotecdigital.com
Fri Jan 23 17:22:52 EST 2015
Shorter still:
switch (the platform)
case “MacOS” ; put "Finder" into tReference ; break
case “Win32” ; put "Explorer" into tReference ; break
default ; put "Desktop" into tReference
end switch
You don’t need a break after default. :-)
Bob S
On Jan 22, 2015, at 24:08 , René Micout <rene.micout at numericable.com<mailto:rene.micout at numericable.com>> wrote:
Easier (clear) / shorter :
switch (the platform)
case “MacOS” ; put "Finder" into tReference ; break
case “Win32” ; put "Explorer" into tReference ; break
default ; put "Desktop" into tReference ; break
end switch
;-)
René
More information about the use-livecode
mailing list