How to check includes condition of two variable values using executeScript Sandbox

Ui.Vision uses Javascript syntax for if, repeatIf or inside executeScript Sandbox. See here: