basicly i have a piece of code and i need to extract the components required to compile a script that basicly uses the same method but does something differently.
that is not important but what is important is that i understand what the functions of the code do so that i know what i’m doing.
please no “if you want to learn coding then go to the scripting refs (have the t-shirt) and dont rip on other peoples work” comments… I’m not ripping on other peoples work i’m creating my own and learning how to do so by examining how others do so. got it? ![]()
ok so what i dont understand is the use of the symbol “!” and the line i’m looking at is someting like this
if(!lazy Input.GetButtonDown ("a")
i’ve also seen this used on lines like
if (!jumping)
and used with an equals symbol like
!=
now i’ve tried the scripting refs and they seem to have no info on the use of this symbol. or i just looked in the wrong place
I once read something that describes the use of this but only in passing and it was allongside many other symbols so it is a fuzzy memory to say the least
i simply cannot find out what this means
I get the feeling in meens “compared to” but i some how doubt it.
can anybody help?
Ps. Come to think of it i’m kinda unsure of the exact use of the “” symbol too.
Edit: On further examination it appears to mean the same as if (lazy = false) can anybody confirm this to me?