One thing that is being mentioned is conditionals, if, else, etc. Loops would be great, for example:
//Script for building 5 acid tubes
var acidtube == 0
if acidtube > 5, then
for acictube 1
build acidtube
else
stop
As you can tell, i like RPN (dont ask what it is, you should know this).