commonfields: id: If-Then-Else version: -1 name: If-Then-Else script: '' type: javascript tags: - transformer - general comment: A transformer for simple if-then-else logic. enabled: true args: - name: value description: The value to evaluate - name: equals description: (Deprecated) If value equals this - name: then description: Return this value if 'condition' is true - name: else description: Return this value if 'condition' is false - name: condition auto: PREDEFINED predefined: - lhs===rhs - lhs!==rhs - lhs==rhs - lhs!=rhs - lhs>rhs - lhs>=rhs - lhsrhs - value>=rhs - value`, `input_data_type:else=`, `input_data_type:lhs=` and `input_data_type:rhs=`. Choose `value`, `json` or `raw` for .' - name: lhsB description: The value to compare in the second condition (left hand side) - name: rhsB description: The value to compare in the second condition (right hand side) - name: conditionB auto: PREDEFINED predefined: - lhsB===rhsB - lhsB!==rhsB - lhsB==rhsB - lhsB!=rhsB - lhsB>rhsB - lhsB>=rhsB - lhsBrhsB - value>=rhsB - value`, `input_data_type:else=`, `input_data_type:lhs=` and `input_data_type:rhs=`. Choose `value`, `json` or `raw` for .' scripttarget: 0 isllm: false runas: DBotWeakRole fromversion: 5.0.0 tests: - IfThenElse-Test