XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
If, Then, Else Statement help https://www.bbs.xwidget.com/viewtopic.php?f=7&t=5427 |
Page 1 of 1 |
Author: | Sighman [ January 24th, 2015, 7:53 am ] |
Post subject: | If, Then, Else Statement help |
I'm sure this is simple but I just must be missing the boat here. Looking to change the location of a layer when an image is clicked. Here's what I have... if (layer1.Top=4) { layer1.Top=129 } else { layer1.Top=4 } Thank you for helping me see the light! |
Author: | meme [ January 24th, 2015, 11:39 am ] |
Post subject: | Re: If, Then, Else Statement help |
if (layer1.Top==4) { layer1.Top=129 } else { layer1.Top=4 } |
Author: | Sighman [ January 25th, 2015, 10:14 am ] |
Post subject: | Re: If, Then, Else Statement help |
That's done it, just a hacking my way through, thank you |
Author: | Jimking [ January 26th, 2015, 1:21 am ] |
Post subject: | Re: If, Then, Else Statement help |
The difference is in the first line. As I see @meme added a second "=" in the script. |
Author: | Sighman [ January 26th, 2015, 5:33 am ] |
Post subject: | Re: If, Then, Else Statement help |
Yup, might of seen that before in PERL but I'm an amateur to say the least! |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |