docs/versioned_docs/version-2.10.0/how-to/access-cellvalue-rowdata.md
cellValue and rowData in the tableIn this how-to guide, we will build an app that will use a sample RestAPI to display the data in the table, and then we will change the text color of the columns according to the condition.
+ button.GET method, enter the request URL (API URL in previous step), name the query - I have named it crypto, and then Create the query{{queries.crypto.data.coins}} - as you can see in the screenshot of the inspector the data is inside the coins array. You'll see the data in the Preview(green box) below the field.Now that we have our data on the table, we will change the color of the text in the Price and Market Cap columns.
{{cellValue >= 1000 ? 'red' : 'green'}}{{cellValue >= 60000000000 ? 'red' : 'green'}}:::info You can also use Hex Color Code instead of mentioning color in plane text. :::
rowData variable it is required to mention the column name whose cell value we will be comparing in the condition. Let's take a look by changing the text color of Symbol column.name which has value Solana then it should change the color to red else the color should be green.{{rowData.name === 'Solana' ? 'red' : 'green'}}.