View Single Post
Old 01-09-2020, 04:54 PM   #890
Human being with feelings
X-Raym's Avatar
Join Date: Apr 2013
Location: France
Posts: 6,626

When you have a lot of elseif statemebt like that,
consider just using a simple associative table
name = names[i]
where names is a table containing all your indexes and value.

This way it doesnt have to test everything :P
X-Raym is offline   Reply With Quote