Author Topic: Formula within a cell  (Read 211 times)

Whiterhino

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Formula within a cell
« on: January 10, 2022, 10:21:24 PM »
Hi Corey, Seasonal felicitations etc.

I wondered if there was a way to make a calculation within a cell in the layout.

I would like to show the average big blinds per player.

So in other words, (chips in play/ bb/ players left)

is this possible please?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6061
    • View Profile
Re: Formula within a cell
« Reply #1 on: January 10, 2022, 11:08:38 PM »
Sure.  Use the <expression> layout token.  This token allows you to display the results of a formula calculation.  An example:

<expression text="chipCount / bigblind / playersLeft" format="number" roundOff="true">

The expression token has a number of options.  You should edit it in the Token Builder window and select the options you want.

Whiterhino

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Formula within a cell
« Reply #2 on: January 11, 2022, 12:50:13 PM »
Works a treat, top man.