Condition stored as a variable.

Andre Garzia andre at andregarzia.com
Thu Oct 22 15:47:24 EDT 2009


creating code at runtime and executing it is one of the fun things in
programming. You can go crazy with it by creating code that creates code
that creates code that... If there were no scriptlimits we could roll our
own macro expansion engine with it.
Be aware that you can only execute up to 10 lines of code using "do" in
standalones.

Cheers
andre

On Thu, Oct 22, 2009 at 5:39 PM, Warren Kuhl <warrenkuhl at gmail.com> wrote:

> Andre,
>
> Thank you...this worked!  Really appreciate you taking the time to help me
> out.
>
> Warren
>
>
> On 10/22/09, Andre Garzia <andre at andregarzia.com> wrote:
> >
> > try making the variable: get "002" <> "001"
> > do a:
> >
> > do Variable1
> >
> > if it is true then
> > ...
> > end if
> >
> > see if this works! :D
> >
> > On Thu, Oct 22, 2009 at 5:19 PM, Warren Kuhl <warrenkuhl at gmail.com>
> wrote:
> >
> > > I have a viable with the following value:
> > >
> > > Variable1: "002" <> "001"
> > >
> > > I would like to use the variable as a condition and see if it is true.
> I
> > > have tried:
> > >
> > > If Variable1 then
> > >
> > > ...
> > >
> > > End if
> > >
> > > ...this couldn't seem to work. Any suggestions?
> > >
> > > Thanks for any help!
> > >
> > > Warren
> > > _______________________________________________
> > > use-revolution mailing list
> > > use-revolution at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-revolution
> > >
> >
> >
> >
> > --
> > http://www.andregarzia.com All We Do Is Code.
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list