Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / [SOLVED] "And then" command

Author
Message
KamaShin
3
Years of Service
User Offline
Joined: 7th May 2020
Location:
Posted: 21st May 2020 11:15
Hi everyone,
is there a conditional "and" in AppGameKit? I mean something like this:

?

If not, i'd have to go the long way around it, like this



in this example it's note a big deal, but in my real code, things are a bit more messy, and going the long way, is quite a lot longer

The author of this post has marked a post as an answer.

Go to answer

haliop_New
User Banned
Posted: 21st May 2020 11:37
This post has been marked by the post author as the answer.


Change to :


blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st May 2020 23:19
It's important to remember that ALL conditions within an IF will be evaluated regardless of the result of each individual condition

For example;
for i=1 to 100
if i < array.length and array[i] = 25
..
endif
next

If the array length is less than 100 then this code will always crash

Login to post a reply

Server time is: 2024-04-25 10:09:49
Your offset time is: 2024-04-25 10:09:49