Changing TestObject values while running

I’m trying to make a script where I need specific lines/numbers to be scrolled to and in view. I can’t get the script to work where I can change the value of the TestObject.

rowNumber++

Mobile.scrollToText(rowNumber.toString())

**Mobile.modifyObjectProperty(findTestObject('Modular testing/Progress/Assign rows/RowNumber'),'text', 'equals', rowNumber.toString(), true)**
	
Mobile.tap(findTestObject('Modular testing/Progress/Assign rows/RowNumber'), 0)

hello,
as usually documentation have some answers … check part of parametrization of test object
https://docs.katalon.com/katalon-studio/docs/manage-test-object.html#parameterizing-test-object