Subt (MPI)
From Tapestries MUCK
(Difference between revisions)
Line 7: | Line 7: | ||
If more than two args are given, all values are subtracted from the first value in sequence. | If more than two args are given, all values are subtracted from the first value in sequence. | ||
- | + | For example: <mpi>{subt:10,3,2,4}</mpi>would be read as 10 - 3 - 2 - 4, and it would return a result of 1. |
Revision as of 15:02, 30 March 2007
subt
{subt:expr1,expr2} {subt:expr1,expr2,expr3...}
Returns the difference of the values expr1 and expr2.
If more than two args are given, all values are subtracted from the first value in sequence.
For example:
{subt:10,3,2,4}would be read as 10 - 3 - 2 - 4, and it would return a result of 1.