User inactivity logout

The system was designed by another systems integrator and now I’m trying to change and modify certain things, one of them is when a supervisor is log in for xxx amount of time and not activity I need to log him/her out.

here is what I’m trying

seconds = system.util.getInactivitySeconds()
Role =’[Client]ROLE_NUM’)
value = 2
value1 = “operator”

if seconds => 300 and Role >=3:, value1)

system.tag.writeToTag(’[Client]ROLE_NUM’, value)
system.tag.writeToTag(’[Client]USER_NAME’, value1)

But I keep getting a syntax error
Unable to register action
Parse Error:
Traceback (innermost last):
(no code object) at line 0
SyntaxError: (‘invalid syntax’,(",6,12,‘if seconds => 300 and Role >=3:’))

What am I doing wrong?

Replace ‘=>’ with ‘>=’.