Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Problem with Variables
From: John Graham
Date: Tue, 11 Apr 2000 22:58:35 +0100

> If my variable is an integer, I can get the correct graphic to appear,
> but if the variable is a word (for example, "Create!" is one of my
> variables) my if/else statements don't work correctly.
> This is a sample of my code:
>
> If (theme="Stop Go")
> Begin Tell Target ("/theme")
> Go to and Stop (5)
> End Tell Target
> Else If (theme="Create!")
> Begin Tell Target ("/theme")
>
> Go to and Stop (2)
> End Tell Target
> End If

Kevin,

No expert here, but I think you you need to change = to eq because it is not
comparing expressions, but strings.

If (theme eg "Stop Go")
Begin Tell Target ("/theme")
Go to and Stop (5)
End Tell Target
Else If (theme eg "Create!")
Begin Tell Target ("/theme")

Go to and Stop (2)
End Tell Target
End If

See if that helps you out? Anyone correct me if I am mistaken.

John G


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Problem with Variables, Kevin Huisman

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]