{"name":"requiredVersion","title":"requiredVersion","type":"command","url":"https://community.bistudio.com/wiki/requiredVersion","revid":379459,"updated":"2026-10-31T00:09:20Z","groups":["System"],"status":"ok","games":{"ofp":"1.21","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.21","arma3_since":"0.50","description":"Check if version of application is available. If the current version is older than the required one, a warning message is shown and false is returned.\n\nVersion of format **Major.Minor**, e.g. **1.30**","syntaxes":[{"syntax":"requiredVersion version","params":[{"name":"version","type":"String","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"unary","right":{"text":"version"}}],"examples":[{"code":["if !(requiredVersion \"1.09\") exitWith {};"]}],"see_also":["productVersion","supportInfo"],"notes":[{"user":"Kronzky","date":"2008-03-12T00:00:00Z","text":"If the script contains a command that was introduced *after* the required version, it will still generate a syntax error, even if this test is done at the top of the script (as the whole script is parsed before execution)."}]}