I've got a problem now =\
im using the following
Code:
var %y $remove($mid(%x,$wildtok(%x,[ * ],1,32),$len(%x)),[,])
for the answer (yes it seems and looks complicated)
...it returns What is 2+2? 4 instead of 4 from "What is 2+2?[ 4 ]"...
Thanks if you could help ^_^
Full alias
Code:
alias -l get.question {
  var %x $read(questions.txt)
  var %y $remove($mid(%x,$wildtok(%x,[ * ],1,32),$len(%x)),[,])
  var %q $mid(%x,1,$calc($pos(%x,[,1) - 1))
  return %q
  if ($readini(benstriv_vars.ini,MAIN,echoanswer) == 1) { echo 4 %y }
  set %currentquestion %q
}