Share this page

# TC.vtcUpdateEqualsCell

Replaces the data in a field, if the current data equals a given value.

Equivalent method in VuGen: lrvtc_update_message_ifequals

    TC.vtcUpdateEqualsCell(colName, rowIndex, value, comparedValue, vtsName);

## Arguments

Name | Description
--- | ---
colName | (string) The name of the column.
rowIndex | (integer) The index number of the field. 1 is the first field in the column.
value | (string) The value.
comparedValue | (string) If the current cell contents are the same as the comparedValue, the cell contents are replaced with the data specified in value.
vtsName (Optional) | (string) The alias of the VTS server.

## Return value

A promise that is fulfilled with a boolean: false if a field with the same value exists; true if there is no field with the same value in the column.

## Example

Copy code

    (async ()=>{
        let data = await TC.vtcUpdateEqualsCell("MyColumn3",1, "updated", "333");
    })();

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: