Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Arc-huangjingtong committed Aug 13, 2024
1 parent 54d50e2 commit 691b0a4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,37 @@ var res = Ink.Evaluate("grower + 10086") as InkValue;

```


- ### ✨Support Control Flow(If Statement)


```csharp

//Not Support Nested call now like : if ( xxx ) { if ( ) { } }
var script= @" if ( 1 > 2 )
{
123
}
else if ( 3 > 6 )
{
456
}
else if ( 3 < 6 )
{
return 456
}
else
{
return 666
} ";

// you should copy the UniInk_Extensions.cs to your project
// it may enlightened you to write the custom extension
var res = Ink.Evaluate_IfStatement(script) as InkValue;

```


# 💬Support

If you have any questions, suggestions, or need assistance, please feel free
Expand Down

0 comments on commit 691b0a4

Please sign in to comment.