minetest.is yes

Description
Returns whether  can be interpreted as yes which is the case if   is "yes", "y", "true" or a number as string that is not "0".

Parameters
1: a string