Would you mind elaborating what you mean by:
You need to escape the curly braces using "|", however this only works once. When the string is processed, the escape character is removed.
I'm trying to create a more dynamic command for retrieving user input. Besides passing unique questions based on the root command that calls the query command, I want to be able to pass unique text comparison conditions so that the query command can handle the 1.) question posing, 2.) answer retrieval, and 3.) answer processing.
My use case here is for a Mass Effect 3 profile. Two of the questions that eventually need to be asked of the user are "what is Shepard's class," and "who is in your current squad?" Two different questions with two very different sets of conditional text comparisons to grab the user's response and filter down to the required action or variable saving. So it would be slick to pass the conditional text expression as a variable that could then be interpreted by sub-commands.
Clear as mud? Here's a snippet of my work-in-progress code:
A root command for identifying the current squadmates in the party:
Begin Text Compare : [{EXP:('{TXT:answer}'='Ashley') Or ('{TXT:answer}'='EDI') Or ('{TXT:answer}'='Garrus') Or ('{TXT:answer}'='James') Or ('{TXT:answer}'='Javik') Or ('{TXT:answer}'='Kaidan') Or ('{TXT:answer}'='Liara') Or ('{TXT:answer}'='Tali')}] Equals '1'
Jump to Marker: Assign
I want to do this kind of text comparison in the sub-command that actually does the user query. However since the comparison is unique to the "Set Squad" command, I cannot apply it to the more general query command that can execute for other root commands. So ideally I would need to pass the long EXP text string as a variable for later text comparison in the sub-command query. So I need to somehow store the EXP as an entirely unevaluated text string and get the "Begin a (Text) Conditional Block" to read this.