EvaluatePlugin
This plugin allows basic mathematical operations like + - * /

You just need to add the Evaluate class' package to the 'jspwiki.plugin.searchPath' in your jspwiki.properties.

This plugin was made as a similar plugin, MathsPlugin , isn't compatible with the newest version of WikiJSP. It uses EvalEx underneath, which isn't the same parser that the original used. It supports variables, but they must be given a value to work.

This plugin is currently pretty basic and the source is provided so it can be enhanced with any functionality you may need.


basic operations
[{Evaluate 10 * 10 / 4}]\\
[{Evaluate ( 2 * 10 + 5 )* 4 + 2 * 3 - 2}]
25
104



let's introduce some variables. X is used in this example, Y isn't.
[{Evaluate ( 2 * 10 + 5 )* x + 2 * 3 - 2

x=5
y=-999}]
129
Category.Plugins