put the number of lines of myField into myTemp
or whatever. It you do this, you will eventually get unexpected results (when Revolution can't work out from the context whether you mean to use a reserved word or not). Many people use a consistent naming style by introducing a one or two-letter prefix before every variable name. I believe Richard G has some clearer advice on this on his site.
HTH
Graham
On Thu, 10 Mar 2005 22:20:52 -0500, Kevin J <[EMAIL PROTECTED]> wrote:
Ahh ok I see. lol I am still thinking like as if I was useing Python or Visual Basic. Thanks for the help
On Thu, 10 Mar 2005 18:58:25 -0800, Dan Shafer <[EMAIL PROTECTED]> wrote: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 [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
---------------------------------------- Graham Samuel / The Living Fossil Co. / UK and France
_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
