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

@sexan
When you have a lot of elseif statemebt like that,
consider just using a simple associative table
Code:
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