A question related to "if" combined with "false" or "true"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

A question related to "if" combined with "false" or "true"

rosuna

Hello:

This is my question. I am writing a model. Please, take a look at these two different sentences:

If variable < 0 [set variable = 0]

If (variable > 0) = false [set variable = 0]

The first writing leads to an error message later on, when I run the complete model, and the second one doesn't. Therefore I know they are not equivalent.

My question is what is the difference, if any.

Thanks!

Rubén Osuna