Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What words are used to compare values?

Can you provide an example script too? Thanks.

1 answer

✓ Accepted answer

I'm not quite sure what you mean by 'word', but the comparison operators compare values...

val1 ~= val2 --True if val1 is not exactly the same as val2
val1 == val2 --True if val1 is exactly the same as val2
val1 <= val2 --True if val1 is less than or equal to val2
val1 >= val2 --True if val1 is greater than or equal to val2
val1 < val2 --True if val1 is less than val2
val1 > val2 --True if val1 is greater than val2

Each of these can be negated by the not operator, which is placed before the first operand (I.e. not val1 > val2).

1 comment

0

Thanks.

This discussion is preserved as it was. New answers, comments, and votes are closed.