- Found in:
- Dylbills PE
voidfunctionCreateCondition(stringconditionId, intconditionFunction, intcomparison=0, floatvalue=1.0)NativeGlobal
Description
Documentation Comment
create a new condition. ConditionId should be unique, so for example use "modPrefix_conditionName".
int comparison options are:
0 = "=="
1 = "!="
2 = ">"
3 = ">="
4 = "<"
5 = "<="
If the condition with the conditionId already exists, this will overwrite the condition with a new one. If overwritten, the params will have to be set again.
Use the ConditionExists function first to prevent this from happening.
See below for the available int conditionFunctions.
Parameters
stringconditionId
intconditionFunction
intcomparison=0
floatvalue=1.0
Examples
Auto-Generated Example
string myString__conditionId
int myInt__conditionFunction
int myInt__comparison
float myFloat__value
DbConditionFunctions.CreateCondition(myString__conditionId, myInt__conditionFunction, myInt__comparison, myFloat__value)