Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: проблемы со скриптом  (Read 1233 times)

krab22

  • Newbie
  • *
  • Posts: 5
    • View Profile
проблемы со скриптом
« on: April 25, 2018, 09:21:59 AM »
Добрый день!
Есть TextItem.
В нем скрипт:
$S{
var Enable = $V{cassete1Enable}
if(Enable.toString()!="")
    THIS.content = $V{cassete1};
else
   THIS.content = "";
}
При просмотре ошибка:SyntaxError:Parse error
В чем может быть проблема?


Subst

  • Sr. Member
  • ****
  • Posts: 444
    • View Profile
Re: проблемы со скриптом
« Reply #1 on: April 25, 2018, 06:33:22 PM »
Попробуй вместо $V{cassete1Enable} и $V{cassete1} использовать getVariable("cassete1Enable") и getVariable("cassete1")