0

I'm at a loss for what to call that or even what to search for.

What I'm looking for is something like this:

value = None

if something_is_true:
    value = 123

if value is not None:
    send(value)

What is the use of None called in this instance? In my head it sounds something like Cardinal Value, although that is not it.

Federico klez Culloca
  • 26,308
  • 17
  • 56
  • 95
Minix
  • 247
  • 4
  • 17

1 Answers1

1

The word you're probably looking for is "sentinel", that is a variable that triggers some behavior depending on whether it's set or not.

For further information see Sentinel value on Wikipedia.

Federico klez Culloca
  • 26,308
  • 17
  • 56
  • 95