mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 02:15:19 +00:00

I frequently make the mistake of using {IF_VAR} but forgetting to use [then] with it. One solution is to use my own macro, but the better solution is to add proper error reporting to if. If the engine parses an [if] tag with no [then], [else], or [elseif], it should flag an error... otherwise these mistakes are generally silent and very difficult to find.