Author Topic: How to evaluate POV state to replaced value  (Read 2047 times)

CrossWiseRanger

  • Newbie
  • *
  • Posts: 13
How to evaluate POV state to replaced value
« on: February 07, 2017, 06:17:46 PM »
Need assistance with simple conversion.

This works and writes "LEFT" to the log.
Write '{STATE_JOYSTICK2POV1}' to log

This doesn't work, showing "Integer token could not be converted".
Set integer [ButtonClicked] value to the converted value of {EXP:({STATE_JOYSTICK2POV1}='LEFT')}

Thanks.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4778
  • RTFM
Re: How to evaluate POV state to replaced value
« Reply #1 on: February 07, 2017, 06:22:55 PM »
You need single quotes around both because you're comparing text:
Code: [Select]
{EXP:'{STATE_JOYSTICK2POV1}'='LEFT'}