16
Scripting / Re: If this else that
« on: January 26, 2019, 12:46:55 AM »
This is what I ended up with. Thank you both so very much. Unless you see something wrong with my else if. it does appear to work.
Code: [Select]
function PlayerIcon() {
if (fe.game_info( Info.Players ) >= "1") return "images/players.png";
else if (fe.game_info( Info.Players ) <= "" || " ") return "images/none.png";
}
local PlayerIcon= fe.add_image("[!PlayerIcon]", pb_x, pb_y, pb_w, pb_h);
local p = fe.add_text( "[Players]", pb_text_x, pb_text_y, pb_text_w, pb_text_h);