if ($did == 100 ) csn
if ($did == 101 ) csn -s
alias csn { $dialog(cnsadd,cnsadd,-4) }

dialog cnsadd {
.....
.....
....
}
on *:cnsadd:init:0:{
if ($1 == -s) command1
else command2
}

Is it possible to pass a value with a modal dialog?