Merge branch 'dev-if_condition_improve_R4.2.3' into 'master'

Improve if condition so R/4.2.3 doesn't return warning

See merge request es/auto-s2s!61
2 jobs for master
in 37 seconds, using 0 compute credits, and was queued for 2 seconds