how to escape unknown commands

I want to use “/export compact” on automatic backup when ROS version supports it, but

:if ([/system resource get version] > "5.11") do={/export compact} else={/export};
expected end of command (line 1 column 59)

give error on ROS version 5.6
Indeed, command “/export compact” is not supported on this version, but its not needed to …

Use [:parse] to create a function, something like this:
:if ([/system resource get version] > 5.11) do={
:global runExport [:parse “/export compact”];
} else={
:global runExport [:parse “/export”];
}
$runExport;

thank you, that works …