Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Specifying a varibale range |
| From: | Kristopher Schultz |
| Date: | Sun, 12 Nov 2000 15:46:35 GMT |
I'm not sure I understand what you want, but I'll give it a try...
A variable must have a specific value assigned to it. You can't really have
it "hold" a range of values (unless you use an array).
So if what you're really trying to do is assign it a number between 280 and
290 you could use the "random" function to generate a number within that
range and then assign it to the variable, like this...
apple = 281 + random(9);
If, instead, you are just trying to evaluate whether a number falls in that
range, you would use an "if" statement like this...
if (myNumber > 280 && myNumber < 290) {
// The number is between the two values so you can
// perform the scripts within the "if" statement.
}
Does any of this help? If not, please provide a little more detail as to
what you are trying to accomplish.
kristopher schultz - mills james productions
programming : compression : management
@ www.millsjames.com - columbus, ohio
[snip]
> If i want to set my varibale "apple" to > 280 or < 290
> what is the syntax ?
> Assuming this is possible
>
> Mentally challenged
> Quack
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
FLASH: Specifying a varibale range, Quack the Duck
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

