had another crack at the format string code - created a new formattools module. It can now handle {If} and {Or} statements although there's a bug preventing nested if's and or's.