WorldDMT commented on a Page, Variable reader ($vget)  -  Dec 26, 2011

hi
i think no need to loop u can do it like this also

 alias vget {
  if (!$2) { echo -ea invalid parameters! | HALT }
  var %x $iif($0 = 4,$1-3,$1-2)
  if $(% $+ $replace(%x,$chr(32),$chr($(,$+($,$0)))),2) { return $v1 }
  else { echo 7 -ae % $+ $replace(%x,$chr(32),$chr($(,$+($,$0)))) is not set! }
}

P.S: this is just an E.G not tested yet only to give some idea

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.