Grasshopper

algorithmic modeling for Rhino

Just found an odd little bug, or at least something unexpected when using the Gate AND component.

It appears that if one of the inputs is TRUE and one input has no data in it, that results in a TRUE, even though I would say, that should result in a FALSE, because only one input is TRUE and both need to be TRUE for it to be a proper Boolean AND, which is not the case.

Views: 346

Replies to This Discussion

It's because AND is a variable parameter component, you can add any number of inputs. They all have to be TRUE for the result to be TRUE, but any input which isn't defined does get ignored.

Ok, that makes sense. Will check if it is valid and if not turn it into a FALSE.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service