(varName, value, { conditions, subEvents } = {})
| 45 | std(varName, value, { ...opts, conditions: trueCondition }); |
| 46 | |
| 47 | const elseEv = (varName, value, { conditions, subEvents } = {}) => ({ |
| 48 | type: 'BuiltinCommonInstructions::Else', |
| 49 | conditions: conditions || [], |
| 50 | actions: [setVar(varName, value)], |
| 51 | events: subEvents || [], |
| 52 | }); |
| 53 | |
| 54 | const elseIfTrue = (varName, value, opts = {}) => |
| 55 | elseEv(varName, value, { ...opts, conditions: trueCondition }); |
no test coverage detected