Hello Halfdan,
The "Compute an expression on every row" tool supports basic Python
language constructs. There is extensive on-line documentation
describing these, perhaps a good one to start with is:
http://docs.python.org/library/stdtypes.html
Greg Von Kuster
Galaxy Development Team