Skip to content
This repository was archived by the owner on Oct 29, 2019. It is now read-only.
This repository was archived by the owner on Oct 29, 2019. It is now read-only.

[Question] Dealing with return values. #8

@theoriginalbit

Description

@theoriginalbit

In regards to when specifying the return type of a block, for example

this.setOutput(true, 'Boolean')

is this enforced in anyway when it comes to Blockly-lua?

The main reason that I ask is because of turtle.getFuelLevel returning a number when fuel is enabled, but when fuel is disabled it will return "unlimited" which as you can see is a string.

Oh also while I'm here, this also relates to #2, most of the turtle functions now days in the latest few CC versions return 2 values, the first being success of operation, the second being the reason it failed (when it does).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions