Zenity question - how can I use user input?

Solution 1:

zenity --question will return the user's answer in its exit code. You can collect it from the $? special variable, like so

zenity --question --text="Are you there?"
THERE=$?

or use it directly in a conditional like this

if zenity --question --text="Do you want to answer stupid questions?"
then 
    zenity --entry --text="Why?"
fi