Please How to use code fences.
I strongly recommend using VSCode to edit .rules files. Editors | openHAB
You have some very basic syntax errors and one logic problem.
- To access the state of an Item you must call .state, as in
Roxcore_Control.state - To do a comparison you must use
==. '=` is an assignment. - The logic error is described here