Browse Source

'Then' now optional for both one-liner and blocks Ifs.

Mark Sibly 9 years ago
parent
commit
8f0d48a5ae
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/mx2new/parser.monkey2

+ 3 - 1
src/mx2new/parser.monkey2

@@ -687,9 +687,11 @@ Class Parser
 			
 			cond=ParseExpr()
 			
+			CParse( "then" )
+			
 			block=CParseEol()
 			
-			If Not block CParse( "then" )
+'			If Not block CParse( "then" )
 			
 		Catch ex:ParseEx