.......PS. [ZBX-8367] reordering statements and comparison elements for consistency