Hi Steve
I have found a way without any coding or javascript and only using aiml tags available in aiml v1 on the free Pandorabots server to compare two numbers and determine if one is higher, lower or equal to the other and the difference between them and to use the result in further calculations.
I haven’t used long lines of condition statements and this will work on any whole numbers as large as you like but it doesn’t work on decimals since aiml strips out the decimal points and replaces with a space.
I needed to solve this issue for my roulette game to work.
You can see this in action at http://www.nicobloc.com/nicobot.html Say ‘play roulette’ to start the game.
See if you can figure out how I did it?