True or False Statement

if JOKE = true then

Hi guys, do you know why this is not working ;D I am sorry though my lua level is not that bad but I think that I made a NOOBIE mistake there :smiley:

One equals sign is the assignment operator. It’s used for assigning values.

local var = 0;

Two equals signs compares two values, and checks if they are equal.

if JOKE == true then

So basically, add another equals sign and it’ll work.

Or you don’t even need to compare JOKE to a value. Given that the if statement will only execute if the conditions are true, you could do [lua]if JOKE then … end[/lua]

Thank you :wink:

[editline]28th July 2015[/editline]

Wasnt sure at 100%