answer buttons incorporating a varible

Thierry Arbellot thierry.arbellot at wanadoo.fr
Sun May 30 15:05:13 EDT 2004


Hi Rich,

Try to put the expression in brackets.

on makeChoices
   put "someProduct" into tProduct
   answer "What's your pleasure?" with "new eval of another product"\
   or "open old evaluation" or ("Evaluate" && tProduct)
end makeChoices

Thierry.

On Sunday, May 30, 2004, at 20:50 Europe/Paris, Rich Lague wrote:

> I'm trying to get the answer command to give a button with quoted text 
> and a variable in it.
>
> The following script results in 4 buttons: "What's your pleasure?", 
> "new eval of another product", "Evaluate" and "someProduct".
>
> on makeChoices
>   put "someProduct" into tProduct
>   answer "What's your pleasure?" with "new eval of another product"\
>   or "open old evaluation" or "Evaluate" && tProduct
> end makeChoices
>
> I want 3 buttons with the last button reading "Evaluate someProduct".
>
> I have also tried it like this:
>
> on makeChoices
>   put "someProduct" into tProduct
>   answer "What's your pleasure?" with "new eval of another product"\
>   or "open old evaluation" or "Evaluate && tProduct"
> end makeChoices
>
> This script returns three buttons, but the last button reads "Evaluate 
> && tProduct".
>
> Is there a way?
>
> Thanks!
>
> Rich Lague
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list