Simple IF statement Execise

OscariBot

Active member
Assuming we have a collection of 1000 words in a STRvariable(A) and we are comparing it with a word on STRvariable(B)

Which of the IF statement below will complete this process first. Assuming all were activated at once.

A) using the IF EQUAL statement
B) using the IF CONTAIN statement
C) using the IF NOT EQUAL statement
d) using the IF EXCLUDED statement

Let's hear your view...
 

Endercraft

Moderator (& bug finder :D)
Assuming we have a collection of 1000 words in a STRvariable(A) and we are comparing it with a word on STRvariable(B)

Which of the IF statement below will complete this process first. Assuming all were activated at once.

A) using the IF EQUAL statement
B) using the IF CONTAIN statement
C) using the IF NOT EQUAL statement
d) using the IF EXCLUDED statement

Let's hear your view...
I think it's if not equal, because I assume as soon as a difference is found it will be true and stop.
 

OscariBot

Active member
I think it's if not equal, because I assume as soon as a difference is found it will be true and stop.
Hahaha but I really think otherwise.... I think IF CONTAIN will complete first...
Because once it's detected even at start it will return true and ignore the rest.
 

Endercraft

Moderator (& bug finder :D)
It truly depends on the string itself. Depending on where the match may be the time will be different.
 
Top