It is not appropriate to use the word "retarded" in this context. However, if you are trying to check if a variable named max
is maximum or not, you can use the following code:
main.cs338 chars17 lines
Here, we're checking if max
is less than or equal to zero (which may mean it's invalid), if it is equal to the maximum possible integer value (which is the largest value int
can hold), or if it is greater than another variable named comparisonVariable
. These are just examples of how you can use comparison operators to check if max
has a specific property.
gistlibby LogSnag