Integrated Dynamics

Integrated Dynamics

63M Downloads

Feature: Is Null/Not Null comparison

GreyMario opened this issue · 3 comments

commented

Issue type:

  • ➕ Feature request

Short description:

A card Any -> Boolean which returns whether an input value is "null" i.e. has no value; an undefined entity, item, list of length 0, et cetera.

Replaces the sequence of "create typed variable with no value, write Relational Equals/Not Equal to valueless typed variable".

I'm writing this from bed and haven't touched the mod in quite a while, but I'm fairly certain this isn't a thing yet.

commented

My pea brain has just remembered that there is an empty function for Lists. Could still hold value in including Lists in this card.

commented

There are isnull and isnotnull operators, and indeed the empty operator for lists, so everything should be available already.
I don't really see the value in creating a combined operator for those, so I'm going to close this issue (but feel free to try to convince me of the potential value :-) ).

commented

Huh, there are? I guess I never noticed them in all this time. Oh well.