Skip to content

Conversation

paulkaplan
Copy link
Contributor

Adds a few top-level APIs for getting/setting variable values.

The match the "prototype" that was made in the GUI, which can now be migrated to use these methods.

Additionally, these tests uncovered a bug, which was fixed :)

Fixes #1145

}

/**
* Set a target variables value if it exists. Return whether it succeeded.

This comment was marked as abuse.

This comment was marked as abuse.

}

/**
* Set a target variables value if it exists. Return whether it succeeded.

This comment was marked as abuse.

This comment was marked as abuse.

Copy link
Contributor

@kchadha kchadha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG minus nit pick comments about comments.

@kchadha kchadha assigned paulkaplan and unassigned kchadha Jun 5, 2018
@paulkaplan paulkaplan merged commit 124a5d9 into scratchfoundation:develop Jun 5, 2018
@paulkaplan paulkaplan deleted the var-apis branch June 5, 2018 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add top-level API for changing variable values

2 participants