I want to switch the value for isFollowing. If it's true I want isFollowing = false and the opposite too.
Instead of 'if' statement i am using ? :
isFollowing == true ? isFollowing = false : isFollowing = true;
But this isn't working. it gives "Only assignment, call, increment, decrement, and new object expressions can be used as a statement" Why is that ?
Thanks in advance