#!/bin/ksh # cannot exit from a condition hence the workaround test=yes if [[ $test = yes ]]; then if [[ -z $nodef ]]; then echo \$nodef not defined else echo this text does not show up fi fi echo this text shows up