invoso.com Report post Posted 05/21/2018 12:20 PM Can we use variable as paths option? in case on {0} goto [first] on {1} goto [second] on {timeout 5} goto [Hangup the Call] declare: $RV[option1] = 'on {0} goto [first]' $RV[option2] = 'on {1} goto [second]' $RV[option3] = 'on {1} goto [second]' use in paths: $RV[option1] $RV[option2] $RV[option3] Share this post Link to post
SupportTeam Report post Posted 05/21/2018 09:15 PM $RVs can be used in Paths expressions. Any $RVs in paths are evaluated before the Paths expression used to determine what action is taken after an event arrives. The Paths definitions after $RV replacement must be valid, with all paths in this format: On {Trigger} Goto [Module Title] Your example above should work. assigning all three lines to one $RV and specifying just that one $RV should also work. This approach would also work: on {$RV[option1]} goto [first] on {$RV[option2]} goto [second] on {$RV[option3]} goto [Hangup the Call] where $RV[option1] - $RV[option3] are assigned keypad digits or other events triggers. And this approach would also work: on {1} goto [$RV[option1]] on {2} goto [$RV[option2]] on {3} goto [$RV[option3]] where $RV[option1] - $RV[option3] are assigned module titles. etc. Share this post Link to post