What's the syntax for subtracting a percentage of something....
I want to subtract 5% from a counter.
I thought it would be
Set Counter "Counter" to
value( "Counter" ) - 5%
It gives me a syntax error.
Printable View
What's the syntax for subtracting a percentage of something....
I want to subtract 5% from a counter.
I thought it would be
Set Counter "Counter" to
value( "Counter" ) - 5%
It gives me a syntax error.
Gah... Nvm. I figured it out.
value( "Counter" )-(maxvalue( "Counter" )*0.05)
Or value( "Counter" )/100.0*5.0
"value( "Counter" )/100*5 " may be incorrect if you want your result to use decimals. Use 100.0 and 5.0 instead.