Integrated Computers

Integrated Computers

4.8k Downloads

What is the "NIL Provided" used for?

MasterEnderman opened this issue ยท 3 comments

commented

image
to me is looks like another boolean that can be toggled via component.computer_reader.provide(0)

commented

"Nil Provided" is true if .provide(nil) or .provide() is called. Otherwise something is provided and it is false

When the module is initialized, if nothing is provided yet, the value is therefore always true.

commented

Do you see any usecase for this that i didn't came across yet?

commented

Yes, for troubleshooting and debugging. All aspects always have a value, even if none is provided. This allows you to determine that they are invalid.