Skip to content

Declare variables using mutation functions #827

Answered by MikeStall
cchannon asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, there isn't a helper function to do this yet. So you will need to manually handle it like you outlined above.
Part of the reason is that the analysis can get very complex in "whole document" scenarios. For example, Set(x,y); Set(y,z); Set(z,x) would need to detect the chain and circular reference. And this could potentially spread across multiple expressions.

Note that this can apply to Set, Collect, ClearCollect and possibly other functions in the future.

curious - do you need Set, or can you use Named Formulas? See Engine.SetFormula.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@cchannon
Comment options

Comment options

You must be logged in to vote
1 reply
@cchannon
Comment options

Answer selected by cchannon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@MikeStall
Comment options

@cchannon
Comment options

@MikeStall
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants