aisingapore / TagUI

Free RPA tool by AI Singapore
Apache License 2.0
5.6k stars 580 forks source link

py_step� error passing string variable - see example #1346

Closed xin911 closed 1 year ago

xin911 commented 1 year ago

name = "DZ202305050205" phone = 1234567 py_step('phone = ' + phone) // success py_step('name = ' + name) // error passing string variable. image

use py_step('name = "name"') instead.

ruthtxh commented 1 year ago

Hi @xin911 When working with strings and py step you can do this:

name = 'DZ202305050205'
py_step('name = "' + name + '"')
py print(name)
echo `py_result`
ruthtxh commented 1 year ago

Closing this for now, feel free to reopen.