Help with other code

Dan Shafer revdan at danshafer.com
Thu Mar 10 21:58:25 EST 2005


It's almost as you have it, Kevin!

if txtName is "Kevin" then
   put pi * 12 into number
else
   put pi * 20 into number
end if

If "txtName" is not a variable but rather the name of a field, then 
it's only slightly different:

if field "txtName" is "Kevin" then
   put pi * 12 into number
else
   put pi * 20 into number
end if

Dan

On Mar 10, 2005, at 6:44 PM, Kevin J wrote:

> I understand the basics on how to manipulate fields. What I would like
> to know is how to your write the code for somthing like this
>
> if txtName == "Kevin" then
>       number = pi * 12
> else
>       number = pi * 20
>
> I hope I explained my self ok there lol.
>
> Thanks
>
> Kevin
> _______________________________________________
> 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