If statements based on language using PHP for WPML WordPress Plugin, a code ready for usage, It’s working for me perfectly
<?php if(ICL_LANGUAGE_CODE==’en’): ?>
—do something—
<?php elseif(ICL_LANGUAGE_CODE==’it’): ?>
—do something else–
<?php endif; ?>