Luft08 27 Posted January 27, 2021 I looked this command up in the wiki and it gave two examples. I don't understand the second example: _inGame = getClientStateNumber > 8; I thought it simply returns a value. I understand _ingame = getClientStateNumber but what does the "> 8" do? Share this post Link to post Share on other sites
beno_83au 1362 Posted January 28, 2021 https://community.bistudio.com/wiki/a_greater_b The wiki has all the operators at the beginning. 1 Share this post Link to post Share on other sites
Larrow 2794 Posted January 28, 2021 16 hours ago, Luft08 said: I thought it simply returns a value. It does, it then checks whether that number is greater than(>) 8. Which 8 is "GAME LOADED" Island loaded, vehicles received. Share this post Link to post Share on other sites
Luft08 27 Posted January 29, 2021 On 1/28/2021 at 8:11 AM, Larrow said: It does, it then checks whether that number is greater than(>) 8. Which 8 is "GAME LOADED" Island loaded, vehicles received. Sorry but maybe I'm just slow. I still don't understand. So if it determines that the value is less than 8 what does it return? i.e. does it wait until the return value WILL BE greater than 8 before returning? Share this post Link to post Share on other sites
beno_83au 1362 Posted January 29, 2021 3 hours ago, Luft08 said: So if it determines that the value is less than 8 what does it return? Did you have a look at the link i posted? It explains exactly that and also gives an example. getClientStateNumber returns a number and > compares it with 8. If you want to wait until getClientStateNumber > 8 you need to put it in a https://community.bistudio.com/wiki/waitUntil. But you need to read the info on those commands. Share this post Link to post Share on other sites
killzone_kid 1326 Posted January 30, 2021 The command returns number, > is not part of the command, it is comparison operator to compare your number to the number command returns, when you use comparison operator the expression will return true or false. Share this post Link to post Share on other sites