ID:158728
 
I was wondering if there was a separator to write code on one line? For instance :

Block_Of_Code()
switch(variable)
if(1)
return "One"
if(2)
return "Two"
if(3)
return "Three"
else
return "What!?"


Could I get it to something like this without errors? :

Block_Of_Code() switch(variable) if(1) return "One" if(2) return "Two" if(3) return "Three" else return "What!?"
You mean like this?
proc/Block_Of_Code(var/variable) {switch(variable) if(1) return "One"; if(2) return "Two"; if(3) return "Three"; else return "What!?"}