Unknown Underlines

I have this module script with tables in it, but there are some underlines for some reason.

local module = {
	apple = {Name == "Apple", Amount = 1, Price = 0},
	rottenApple = {Name == "Rotten Apple", Amount = 5, Price = 20},
	glassApple = {Name == "Glass Apple", Amount = 20, Price = 100},
	neonApple = {Name == "Neon Apple", Amount = 250, Price = 1000}
}

return module

If you hover your mouse over those words, what does it tell you?

The problem is that I put 2 equal signs for the name (idk why). also it doesn’t say anything if I hover over but its fixed now

It’s the double equal that’s causing the issue. Remove one.

Because 2 equal signs are only used for comparison that two values are identical.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.