View Single Post
05/30/14, 09:57 AM   #4
lyravega
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 93
Originally Posted by Garkin View Post
I'd use this:
Yeah, I'm trying to grasp my head around those stuff I am used to ternary operators from C, and just recently discovered that I can do the same with LUA's and/or stuff too (and more), which is neat

Lua Code:
  1. local alpha; alpha = allow and 0.5 or 1
  2. --if allow == true then alpha = 0.5 else alpha = 1 end
  Reply With Quote