Untitled conversation
- Userlua
if #self.headBoneIndices == 0 then if CanNotifyError() then Log("Warning: No valid head bones found for model '" .. model .. "'. Expected bones: " .. table.concat(self.config.headBoneNames, ", "), true) end end[{ "resource": "/C:/Program Files (x86)/Steam/steamapps/common/GarrysMod/garrysmod/lua/autorun/client/cl_firstperson_body.lua", "owner": "glua", "severity": 4, "message": "Double if statement. Please combine the condition of this if statement with that of the outer if statement using
and.", "startLineNumber": 158, "startColumn": 44, "endLineNumber": 158, "endColumn": 215 }] - Assistant
The error message you're encountering suggests that you have nested
ifstatements, and it's recommending that you combine their conditions using theandoperator for better readability and efficiency.Original Code:
lua