- Home /
I need help with a c# script carnt figure out of to say If one variable doesnt equal another variable in c#
I need to know what i can type in C# to say if one variable is not equal to another, any help would be appreciated. its probably something simple that im just not thinking of.
Thank you
Comment
Answer by MakakWasTaken · Sep 28, 2015 at 09:15 AM
You can just say
if (var1 != var2) {
}
Since ! Means not in c# And this could easily be found by searching the forum before posting.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Character refuses to fly 2 Answers
Renderer on object disabled after level reload 1 Answer
The name PreviewEditorWindow does not exist in this current context 2 Answers