Fastest Technique? 'elseif' or 'or'

Blitz3D Forums/Blitz3D Programming/Fastest Technique? 'elseif' or 'or'

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I wouldn't be too concerned about optimising this kind of thing. The difference is negligible and would not be a bottleneck in your code.

That said, you would have to evaluate between 1 and 3 pieces of logic in the first example, whereas the second would always be 3. So, logically the first would be faster in most cases.

Stevie