Tag:tabble

  • Lua detects whether an array (tAbbLe) contains a value

    Time:2022-1-19

    1、 DetectionarrayDoes the contain a value ? 1 2 3 4 5 6 7 8 9 –Traversal array function IsInTable(value, tbl) for k,v in ipairs(tbl) do   if v == value then   return true;   end end return false; end 2、 Lua determines whether an array exists for a character Judge whether the character B exists in […]