Code: Select all
handler getMyThing(pSwitchForOtherThing) -- no type so it should be optional any even nothing
if pSwitchForOtherThing = "other thing" then
return "bar"
else
return "foo"
end if
end handler
but if I call call getMyThing("other thing") I get "bar" back
but this doesn't compile, errors that there aren't enough parameters.
Also if I want to have a param and an optional second parameter, in LCS I still have to include a comma after the non-optional first parameter in my call, even if the second param isn't needed like so : getMyThing("other thing", empty )
Is this not possible yet or are these bugs, or just haven't been refined yet, or what?
Also can we please have CASE/SWITCH in LCB, Pretty Pleeease?
Thanks