Skip to content

Commit

Permalink
Added string !? substring
Browse files Browse the repository at this point in the history
  • Loading branch information
joningold authored and y-lohse committed May 17, 2018
1 parent d02b962 commit 33ea402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/NativeFunctionCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export class NativeFunctionCall extends InkObject{
this.AddStringBinaryOp(this.Equal, (x, y) => {return x === y ? 1 : 0});
this.AddStringBinaryOp(this.NotEquals,(x, y) => {return !(x === y) ? 1 : 0});
this.AddStringBinaryOp(this.Has, (x, y) => {return x.includes(y) ? 1 : 0});
this.AddStringBinaryOp(this.Hasnt, (x, y) => {return x.includes(y) ? 0 : 1});

this.AddListBinaryOp(this.Add, (x, y) => {return x.Union(y)});
this.AddListBinaryOp(this.Subtract, (x, y) => {return x.Without(y)});
Expand Down

0 comments on commit 33ea402

Please sign in to comment.