Like this:
write $case(condition,
1:{
set a="hello " _"world"
return a
}
2:"name",
:"!")I figured out that the thing I want is close to "closures" ;)
- Log in to post comments
