PixelPerfectEngine,
@PixelPerfectEngine@peoplemaking.games avatar

Here's some else if-else if-else if in my code.

I swear it was the only way I know of that I could get the type held by that struct!

loganthemanster,

@PixelPerfectEngine since every line is a return, meaning that the rest of the code will be skipped as soon as one condition is true, you can delete every "else" and the logic will still be exactly the same.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • gamedev
  • kavyap
  • thenastyranch
  • Durango
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • cisconetworking
  • Youngstown
  • mdbf
  • slotface
  • osvaldo12
  • GTA5RPClips
  • rosin
  • InstantRegret
  • provamag3
  • everett
  • cubers
  • vwfavf
  • normalnudes
  • tacticalgear
  • tester
  • ethstaker
  • khanakhh
  • modclub
  • Leos
  • anitta
  • megavids
  • JUstTest
  • All magazines