inkle / inkle/inky

Check if Knot VAR is set to specific Knot

Open
#175 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
340
PR merge metrics
No merged PRs in 30d

Description

Hello,

the follwoing code works on Inky editor but I can't export (compiling error).
```
VAR CurrentRoom = -> Bedroom
+ {CurrentRoom != ->Park} [Go to the park.]
~CurrentRoom = ->Park
You go to the park.
->CurrentRoom
```

The error is:
```
ERROR: 'e80c9786-aa3d-4b17-aeca-78d833590747.ink' line 21: Can't use a divert target like that. Did you intend to call '-> Park' as a function: likeThis(), or check the read count: likeThis, with no arrows?
```

How can I do that kind of check?

Regards

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.