[Solved] Understanding -1 and 1


I would greatly appreciate it if someone could explain this syntax to me. It comes from one of your use cases involving information validation.

The formula is used to validate whether an email ID contains the mandatory '@' symbol. If a user forgets to include it, an error message should be displayed. If the '@' symbol is present, no error message should be shown, or the existing error message should be hidden.

Coming from a non-coding background, I'm trying to understand why -1, 0, and 1 are used here. In this context, you've used 'if not equal to -1, hide,' and 'if equal to -1, then show.'

I need assistance in reading it so that I can better understand what -1 represents in this case. For instance, we've been taught to interpret 0 as 'off' and 1 as 'on.' Similarly, if someone could provide an interpretation to help me read/understand -1 better, it would be greatly appreciated.

I also attempted to experiment with 0 and 1, but it didn't yield any results. However, when I tried using '1' and reversed the logic somewhat from -1, it worked!