I've been experimenting with the include statements and console run custom scripts recently and I noticed that the console doesn't like conditional statements such as if/else/elseif.
Here is the code of the test.con file which I placed inside my main Battlefield 1942 folder:
var v_test = 5
if v_test = 5
game.sayAll "test"
else
game.sayAll "nothing"
endIf
I then start a local game (Berlin CQ in this case), pull down the console with the tilde key and type "include test.con". This is the error I get in the console:

So it seems using the include statement from the console or an admin command excludes the use of conditionals. Would it be possible to circumvent that error so that conditional statements could be used in CON, TXT and INC files when included from the console or typed as a custom admin command?