$ZSTRIP will delete repeating characters
set newstring=$ZSTRIP(oldstring,"=W") // for whitespace
set newstring=$ZSTRIP(oldstring,"="," ") // for only spaces
- Log in to post comments
$ZSTRIP will delete repeating characters
set newstring=$ZSTRIP(oldstring,"=W") // for whitespace
set newstring=$ZSTRIP(oldstring,"="," ") // for only spaces
Have you tried the %IsDefined method?
set a={}
if a.%IsDefined("test") write "defined"
set a.tset=1
if a.%IsDefined("test") write "defined"