Ask A Question

Questions

1
ANSWERED

We Need Conditional Quick Replies

Quick replies are great, but sometimes they need to be conditional, based upon information that we either have extracted from previous responses or have stored in custom vars. Simple example in 'Choose your own adventure' style: --- _You get out of bed and pad barefoot into the chilly bathroom. There is barely enough room to turn around and scratch your arse in here. A small window in the shower stall is open, letting in the cold night air._ **(Go back to bed)** **(Close the window)** **(Climb out window)** Close the window _After much banging and grunting, you manage to get the window closed, but that baby isn't opening again. It's now jammed shut tight in its sash._ **(Go back to bed)** Go back to bed _Rubbing your arms vigorously, you go back and sit on the side of your bed. At least it's warming up a little in here now. The rapping at the door continues, more urgently now._ **(Open the door)** **(Go into the bathroom)** **(Try to sleep)** Go into the bathroom _You get out of bed and pad barefoot into the chilly bathroom. There is barely enough room to turn around and scratch your arse in here._ **(Go back to bed)** **(Close the window)** **(Climb out window)** --- So in this final interaction, we don't want to show the **(Close the window)** **(Climb out window)** quick replies, because the window has been closed. The only way to avoid this is to have a totally different interaction for the bathroom where those quick replies aren't shown. And you need a separate interaction for the bedroom that takes you to that alternate bathroom. But when you leave the original bathroom, you can't have the quick reply take them to the alternate bedroom (with the quick reply that takes them to the alternate bathroom), because they might not close the window, in which case you want them to come back to the same bathroom interaction. The point is, just like we need variables and conditional logic that displays text only if the variables meet a certain condition (like above where _"At least it's warming up a little in here now."_ is displayed only if the bathroom window has been closed), we also need a way for quick replies to only be shown if a variable meets a certain condition.

Posted by Cliff Hall 3 months ago