How to use the liquid code to get the switch status as shown in the figure, preferably a Boolean variable