CONDITION#
Used to specify a custom condition for the requirement to be fulfilled.
Example#
The following example requires _custom_fun_var
Fun variable to be set to 5
.
"requirements": [
{
"type": "CONDITION",
"condition": {"type": "value", "code": "_custom_fun_var", "z": 42}
}
]
Attributes#
condition#
Type: FunCondition
hide if fulfilled#
Type: boolean
Whether to hide the requirement text if the requirement was fulfilled.
By default, the value will be false.
hide if not fulfilled#
Type: boolean
Whether to hide the requirement text if the requirement was not fulfilled.
By default, the value will be false.
text#
Type: string
Text to show if the condition is not fulfilled.
text fulfilled#
Type: string
Text to show if the condition is fulfilled.
text id#
Type: string
ID of text to show if the condition is not fulfilled.
text id fulfilled#
Type: string
ID of text to show if the condition is fulfilled.