You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workaround : use if style syntax
There appears to be a second bug, ore1 and ore2 have been made into constants, @Ore1 and @ore2 when they should be variables
You can use the dot syntax (container.resource) only if the resource denotes an existing ore, and you omit the leading @: container.copper.
If you want to obtain the level of item specified by a variable, you need to call sensor function: container.sensor(ore)
Also, if you compile just the code snippet you've posted, lots of instructions get lost to dead code elimination. We can mark the final output as 'not dead' by printing it, for example.
The last problem is that the ternary operator takes precedence over the greater-than comparison.
Your example, when modified with respect to the above rules, looks like this:
generated
It should be something like
The text was updated successfully, but these errors were encountered: