10,854
edits
Line 121: | Line 121: | ||
; Condition, Group And, Group Or, Ungroup: Use Condition to add another condition to the same If. Define if the all conditions must be met (AND) or only some (OR). Use Ungroup in nested conditions. | ; Condition, Group And, Group Or, Ungroup: Use Condition to add another condition to the same If. Define if the all conditions must be met (AND) or only some (OR). Use Ungroup in nested conditions. | ||
; Export XML, Import XML: Rules can be exported and reused in a different location in the project or in a different project. | ; Export XML, Import XML: Rules can be exported and reused in a different location in the project or in a different project. | ||
== Function types == | |||
Each variable data type will have different set of functions. See the table for details. | |||
{| class="wikitable" | |||
|- | |||
| '''Function Name ''' || '''Description ''' || '''Variable data types ''' || '''Argument data types''' | |||
|- | |||
| Assign || Assigns value to variable || Text, Number, Boolean, Date || Variable data type, all types for text variable | |||
|- | |||
| Clear || Assigns null or empty value to variable || Text, Number, Boolean, Date || | |||
|- | |||
| Convert || Converts value from string || Number, Boolean, Date || String value | |||
|- | |||
| Negate || Returns negated value of argument || Boolean || Boolean | |||
|- | |||
| AddSufix || Adds argument value as suffix to variable || Text || Text, Number, Boolean, Date | |||
|- | |||
| AddPrefix || Adds argument value as prefix to variable || Text || Text, Number, Boolean, Date | |||
|- | |||
| Concat || Returns concatenated string from two arguments || Text || 2 args: Text, Number, Boolean, Date | |||
|- | |||
| Concat3 || Returns concatenated string from three arguments || Text || 3 args: Text, Number, Boolean, Date | |||
|- | |||
| Format || Returns formatted string from StringList || Text || Arg1: Text; Arg2: StringList | |||
|- | |||
| Addition || Returns addition of arguments || Number || Arg1: Number; Arg2: Number | |||
|- | |||
| Difference || Returns difference between first and second arguments || Number || Arg1: Number; Arg2: Number | |||
|- | |||
| Multiplication || Returns product of arguments || Number || Arg1: Number; Arg2: Number | |||
|- | |||
| Division || Returns division of arguments || Number || Arg1: Number; Arg2: Number | |||
|- | |||
| SetNow || Assigns current time to variable || DateTime || | |||
|- | |||
| SetToday || Assigns current day to variable || DateTime || | |||
|- | |||
| SetTomorrow || Assigns tomorrow to variable || DateTime || | |||
|- | |||
| AddMinutes || Returns DateTime argument plus X minutes || DateTime || Arg1: DateTime; Arg2: Number | |||
|- | |||
| AddHours || Returns DateTime argument plus X hours || DateTime || Arg1: DateTime; Arg2: Number | |||
|- | |||
| AddDays || Returns DateTime argument plus X days || DateTime || Arg1: DateTime; Arg2: Number | |||
|- | |||
| AddWeeks || Returns DateTime argument plus X weeks || DateTime || Arg1: DateTime; Arg2: Number | |||
|- | |||
| AddMonths || Returns DateTime argument plus X months || DateTime || Arg1: DateTime; Arg2: Number | |||
|- | |||
| AddYear || Returns DateTime argument plus X years || DateTime || Arg1: DateTime; Arg2: Number | |||
|- | |||
| AddItem || Adds argument to end of list. || StringList || Arg1: Number, Boolean, String, DateTime | |||
|- | |||
| InsertItem || Adds argument to specified index. Index starts at 0. || StringList || Arg1: Number, Boolean, String, DateTime; Arg2: Number | |||
|- | |||
| GetItem || Returns item at specified index. || StringList || Number | |||
|- | |||
| RemoveItem || Removes item at specified index || StringList || Number | |||
|- | |||
| ClearItems || Removes all items from list variable || StringList || | |||
|- | |||
| Function || Description || Variable data types || Argument data types | |||
|} | |||
<small>Text = String, Memo <br> | |||
Number = Integer, Float, Decimal, Number</small> | |||
[[Category:Woodford]] | [[Category:Woodford]] |