In my current class, we are required to assess our own code, as well as 2 random other students' code. It is pseudo code, so it doesn't really conform to a specific language, so I must ask: Will the following work in ANY language?
If Variable NOT == 0
instead of
If Variable == NOT0
or whatever the format is supposed to be... Variable == NOT(0), maybe?
I know the simple thing in this case is !=, but the chapter for this assignment introduced AND, OR, and NOT, and data validation, and students are encouraged to use the new concepts in every chapter's work.
Within an If statement like that... would it crash the program or just simply not validate the data as you intended?
Just broke my personal record for number of consecutive days without dying!
|