View Single Post
04-07-13, 05:47 AM   #13
Sharparam
A Flamescale Wyrmkin
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 102
On a slightly unrelated note, the following:
Originally Posted by Resike View Post
Code:
if PS_EnableAddon == true then
		if PS_SoundEffect == true then
Can be simplified to:
Code:
if PS_EnableAddon and PS_SoundEffect then
There's no need to have a separate if-clause for every boolean, and booleans can be tested without "== true".
  Reply With Quote