|
|
Custom flags are bouquet validators which accept a user defined anonymous function that returns a boolean value. These validators can be any valid anonymous Lua function which returns *true* or *false*.
|
|
|
Custom flags are bouquet validators which accept a user defined anonymous function that returns a boolean value. This allows for any custom condition to be used as part of the evaluation of a bouquet's chain of validators. These custom flag validators can be any valid anonymous Lua function which returns *true* or *false*.
|
|
|
|
|
|
The function can access the *VUHDO_unitInfo* variable which is a table containing the relevant cached unit information.
|
|
|
The *VUHDO_unitInfo* table provides the relevant cached information on the subject unit to the anonymous function.
|
|
|
|
|
|
The simple example below returns true if the unit is named 'Ivaria':
|
|
|
```lua
|
... | ... | |