# ifcontinue

ifcontinue is a function meant to return binary response to a yes-or-no question.

For example:

if [ $(ifcontinue "{{ B-dot }} Do <on_bl>you</on_bl> want to go <bb>do something</bb>?") -eq 0 ]; then
  xecho "Good - <g>{{ E-smile }}</g>"
else
  xecho "Bad - <g>{{ E-sad }}</g>"
fi

Results
• Do you want to go do something? [yes/no] : yes
Good - ʘ‿ʘ

uc variables

uc_ifc_posfix - Change default posfix ([yes/no]). For example:

uc_ifc_posfix="<bl>yes</bl>|<bir>no</bir> - "

Would change "[yes/no]" to "yes|no -".