Condtional parameters in handler calls
Kee Nethery
kee at kagi.com
Tue Jul 17 19:29:09 EDT 2012
if <condition> then
put <parm2a> into parm2
else
put <parm2b> into parm2
end if
myCommand parm1, parm2, parm3
I don't think it is possible and ... I think you are heading towards the single line Perl programming contest where they see who can write a single line of Perl that does something amazing and cannot be interpreted by a human.
Just my two cents.
Kee Nethery
On Jul 17, 2012, at 4:18 PM, Peter Haworth wrote:
> I'm pretty sure this is not possible but it would be very cool if a
> parameter to a command could be a conditiion something like:
>
> myCommand parm1,if <condition> then <parm2a> else <parm2b>,parm3
>
> I've tried every which way to do that but always get compile errors.
>
> Not possible, right?
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list