I want to go to a different card of another stack. This works but not always in my script?!

William de Smet williamdesmet at gmail.com
Fri Oct 17 05:12:24 EDT 2008


Bonjour Eric,

When I started learning and using Rev I got a stack in which it was
done this way.
So I thought this was the only way and the right way to do it.
You showed and learned me today that it can and should be done differently.
Still learning Rev every day and loving it (me being a teacher myself).

Greetings,

William 'MacSMet' de Smet

2008/10/16 Eric Chatonet <eric.chatonet at sosmartsoftware.com>:
> Bonsoir William,
>
> Le 16 oct. 08 à 21:12, William de Smet a écrit :
>
>>    if the hilite of btn "Y" of cd i of stack "X" is true
>>    then put the short name of cd i of stack "X" into ab
>>    then put ab into fld "C" of stack "X"
>
> I go late in this thread but there is something I don't understand in your
> code:
> What is this 'if' followed by two 'then'?
> There is something weird here ;-)
>
> Every 'if' can have a 'then' only (and possibly and 'end if'):
> I would understand:
>
> if the hilite of btn "Y" of cd i of stack "X" [is true] then -- *
>    put the short name of cd i of stack "X" into ab
>   put ab into fld "C" of stack "X"
> end if
>
> But, to be frank, not the form you use.
>
> *  I put brackets here to indicate that you could simplify your code and
> omit 'is true':
> A condition is always evaluated to true or false then adding 'is true' is
> redundant :-)
>
> Best regards from Paris,
> Eric Chatonet.
> ----------------------------------------------------------------
> Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
> Email: eric.chatonet at sosmartsoftware.com/
> ----------------------------------------------------------------
>
>
> _______________________________________________
> 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
>



More information about the Use-livecode mailing list