What does this sign mean?
#1

Well i see this sign on most admin script ">=".
1. Does it mean more than or equal to?
2. Why does this (example. AdminLevel[playerid] == 1 || AdminLevel[playerid] == 2 || AdminLevel[playerid] == 3) not work?
3. Is it better to use (example. AdminLevel[playerid] >= 1 && AdminLevel[playerid] =< 3)
Reply
#2

1.
number 1
--------------
Reply
#3

>= means greater than or equal to. It is better to use it than bunch of OR EQUAL TO statements like ( x == 1 || x == 2 || x == 3 || x == 4 ... ).

Why? As you can see, OR statement variant can go very long. Try to write for example ( x >= 1 && x <= 85 ) with OR EQUAL statements.
Also you can easily use different, changing values. Like ( x >= DEFINED_VALUE && x <= random_changing_integer ).
Reply
#4

Thanks .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)