Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vartext inconsistent behavior in IF statements and conditional assignment #35

Open
Cassandra-Clark opened this issue Nov 17, 2018 · 3 comments
Milestone

Comments

@Cassandra-Clark
Copy link

I've attached a file with four different test cases but each of these has some strange inconsistencies with variable setting that seem to evaluate before returning... somehow?

I tried to comment each of them with what was expected.

vartext_testcases.zip

@Cassandra-Clark
Copy link
Author

Attached another example of out of sequence processing

varnum_outofsequenceprocessing.zip

@jdunkerley
Copy link
Owner

The cause is the formula parser running. Unfortunately not sure I can determine in parse stage as opposed to run stage.

I have added some new diagnostic functions into the library:

  • VarTextExists / VarNumExists - check if a variable is defined
  • VarList - writes all variables out as a string in a tab-delimited table
  • VarReset - deletes the entire variable set
  • Log - allows you to write a log message to a file as part of a formula evaluation

I will attach tweaked versions of your test

@jdunkerley
Copy link
Owner

Added examples as part of 1.4.0.1 test suite

@jdunkerley jdunkerley added this to the v1.4 milestone Nov 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants