# HELP: Katalon removes parenthesis in my parameter

**URL:** <https://forum.katalon.com/t/help-katalon-removes-parenthesis-in-my-parameter/19127>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [February 10, 2019, 3:45pm UTC](https://forum.katalon.com/t/help-katalon-removes-parenthesis-in-my-parameter/19127 "2019-02-10T15:45:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dennis\_de\_Guzman](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Dennis\_de\_Guzman](https://forum.katalon.com/u/Dennis_de_Guzman)\
**Post date:** [February 10, 2019, 3:45pm UTC](https://forum.katalon.com/t/help-katalon-removes-parenthesis-in-my-parameter/19127/1 "2019-02-10T15:45:55Z")

</div>

This is my original code  
if (WebUI.verifyElementPresent(findTestObject(‘SmartQ/Create Payment/has\_Payment’), 5) == true) {  
WebUI.sendKeys(findTestObject(‘SmartQ/Create Payment/input\_Payment Amount\_1stReserve’),  
**(reserveAmount1 / 2).toString()**)}

But after I run it, Katalon changes the syntax to  
if (WebUI.verifyElementPresent(findTestObject(‘SmartQ/Create Payment/has\_Payment’), 5) == true) {  
WebUI.sendKeys(findTestObject(‘SmartQ/Create Payment/input\_Payment Amount\_1stReserve’),  
**reserveAmount1 / 2.toString()**)}

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [February 10, 2019, 5:33pm UTC](https://forum.katalon.com/t/help-katalon-removes-parenthesis-in-my-parameter/19127/2 "2019-02-10T17:33:51Z")

</div>

That’s annoying. Try:

> [@Dennis\_de\_Guzman](#):
>
> ```auto
> def amt = (reserveAmount1 / 2).toString()
> 
> WebUI.sendKeys(
> findTestObject(‘SmartQ/Create Payment/input_Payment Amount_1stReserve’), amt
> )
> 
> ```

If that’s not what you want to see in your script, try adding another pair of parentheses around the whole value expression:

```auto
WebUI.sendKeys(
  findTestObject(‘SmartQ/Create Payment/input_Payment Amount_1stReserve’), 
  ((reserveAmount1 / 2).toString())
)

```
