|
Select a value according to a condition.
syntax
SelectVal(
condition,
value1,
value2
)
or
SV(
condition,
value1,
value2
)
*SV is an abbreviation for SelectVal.
Parameters
condition
|
|
Type:
|
Boolean
|
|
conditions.
|
value1
|
|
Type:
|
General purpose
|
|
The value to be selected when condition is TRUE.
|
value2
|
|
Type:
|
General purpose
|
|
The value selected when condition is FALSE.
|
Return Value
|
|
Type:
|
General purpose
|
|
Returns the selected value.
|
Explanation
Returns value1 when condition is TRUE, and value2 when value is FALSE.
In bind scripts, it is mainly used in combination with the $BLINK tag to make it blink.
|
Example
|
SV("$BLINK1000", "#FF0000", "#000000");
|
|
Supported
reference
SelectVal (SV)
GetRemainder
Nums
RepeatValue
SortValue
GetUniqueValue
IsExist
|