Skip to content

Disabling multi-line expressions? #2402

Answered by josdejong
blenderskool asked this question in Q&A
Discussion options

You must be logged in to vote

There is no built-in option, but you can do some pre/post processing to throw an error or something in case the user entered a multi line expression. Some ideas:

  • Just execute any expression. Check if the returned result is a ResultSet, if so, throw an error
  • Parse the expression. If the parsed tree is a BlockNode, throw an error. If not, execute the parsed expression.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@blenderskool
Comment options

@josdejong
Comment options

Answer selected by blenderskool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants