$ 0 0 You really shouldn't compare floats this way, but the comparison operator is two equal signs: if (StackNum == 1) { }