Using logic connectors for user input

I want to create a logic connector. Based on the answer of one question show either one or the other.

Example: User input: (A) or (B)
If answers A then show question #Q2 if B question #Q3

Using the user input API to get it. But i’m not sure how to do it.

value(): string 
set value(value: string): void

Hey
You must then check the value of the answer first and depending on the value of the answer show or hide other stuff.
The code below will check the text input field with id #myElement to see if the value typed inside is Answer by user. This has also to be triggered by a button or some other event.

if( $w("#myElement").value === "Answer by user" ) 
{ $w("#myElement2").show(); } 
else 
{ $w("#myElement2").hide(); }

Hope it takes you in the right direction.