Hi there,

I'm looking to add a line into the default live update javascript that Corey has given to us.

What I want to accomplish is;

If tournament buyins is greater than 14 AND player left in the tournament are less than 9 AND tables left = 1

a line on the HMTL will show Cash Game: Yes

This is what I have but is not working;

TDStatus.updatePage = function()

{

var theChipCount = parseInt(TDStatus.Vars["chipcount"]);

var thePlayersLeft = parseInt(TDStatus.Vars["playersleft"]);

var theTablesLeft = parseInt(TDStatus.Vars["tablesleft"]);

var theAvgStack = thePlayersLeft == 0 ? 0 : Math.floor(theChipCount / thePlayersLeft);

var theRound = (TDStatus.Vars["isround"] == 1) ? TDStatus.Vars["roundnum"] : "On Break (" + TDStatus.Vars["breaknum"] + ")";

var theNewClock = TDStatus.getClockValue(TDStatus.Vars["secondsleft"]) + (TDStatus.Vars["clockpaused"] == 1 ? " (PAUSED)" : "");

var theCashGame = (TDStatus.Vars["buyins"] => 14) + (TDStatus.Vars["playersleft"] <= 9) + (TDStatus.Vars["tablesleft"] == 1) : "YES";

TDStatus.setValue("clock", theNewClock);

TDStatus.setValue("round", theRound);

TDStatus.setValue("blinds", TDStatus.getChipsString(TDStatus.Vars["smallblind"]) + " / " + TDStatus.getChipsString(TDStatus.Vars["bigblind"]));

TDStatus.setValue("nextblinds", TDStatus.getChipsString(TDStatus.Vars["nextsmallblind"]) + " / " + TDStatus.getChipsString(TDStatus.Vars["nextbigblind"]));

TDStatus.setValue("players", thePlayersLeft + " / " + TDStatus.Vars["buyins"]);

TDStatus.setValue("pot", TDStatus.getMoneyString(TDStatus.Vars["pot"]));

TDStatus.setValue("tablesleft", theTablesLeft);

TDStatus.setValue("lastupdated", "" + new Date(parseInt(TDStatus.Vars["time"]) * 1000));

TDStatus.setValue("CashGameOn", theCashGame);

TDStatus.LastUpdateTime = new Date().getTime();

Thanks for looking, and any help appreciated.

Mesnik44