Class DynamicVirtualBoolValue

An implementation of DynamicVirtualValue which stores a boolean.

Stack modes

  • And: Returns lhs and rhs, default base value is true
  • Or: Returns lhs or rhs, default base value is false

Usage

local dvbv = DynamicVirtualBoolValue.new("Or")
dvbv:newChild(false)
dvbv:newChild(true)
dvbv:newChild(false)
print(dvbv:get()) --> true

See also:



generated by LDoc 1.4.6 Last updated 2021-01-21 07:22:00