feat: conditional
This commit is contained in:
parent
7d4ab97fa0
commit
0c36f7a325
|
@ -13,6 +13,12 @@ export class Globals {
|
|||
return x - y;
|
||||
}
|
||||
|
||||
conditional(condition, actions, context) {
|
||||
if (condition.get(context)) {
|
||||
return this.serial(actions, context);
|
||||
}
|
||||
}
|
||||
|
||||
makeArray(...args) {
|
||||
return args;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user