Difference between revisions of "Module:Yesno"
Jump to navigation
Jump to search
recognise "t" for true and "f" for false, per request
meta>Peteforsyth m (23 revisions imported from w:Module:Yesno: Attempting, per request from User:Titodutta. I'm not sure if "w" is the right source wiki (only a few options in drop-down menu)) |
>MSGJ (recognise "t" for true and "f" for false, per request) |
||
Line 13: | Line 13: | ||
or val == 'y' | or val == 'y' | ||
or val == 'true' | or val == 'true' | ||
or val == 't' | |||
or tonumber(val) == 1 | or tonumber(val) == 1 | ||
then | then | ||
Line 20: | Line 21: | ||
or val == 'n' | or val == 'n' | ||
or val == 'false' | or val == 'false' | ||
or val == 'f' | |||
or tonumber(val) == 0 | or tonumber(val) == 0 | ||
then | then |