Author Topic: [solved] TriggerOverride syntax problem  (Read 223 times)

Offline K4thos

  • Planewalker
  • *****
  • Posts: 110
[solved] TriggerOverride syntax problem
« on: March 25, 2019, 06:10:16 PM »
test code:
Code: [Select]
IF
  TriggerOverride(LastSeenBy(Myself),!Global("somevar","LOCALS",1))
THEN
  RESPONSE #100
    Continue()
END
weidu COMPILE error:
Code: [Select]
Near Text: ,!
syntax error
no problems when the same code is compiled with NI. Is there a reason why negated triggers don't work with TriggerOverride in weidu?
« Last Edit: March 26, 2019, 01:53:34 PM by K4thos »

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1051
Re: TriggerOverride syntax problem
« Reply #1 on: March 26, 2019, 01:09:09 PM »
WeiDU does not support that syntax.
The supported construct would be:
Code: [Select]
!TriggerOverride(LastSeenBy(Myself),Global("somevar","LOCALS",1))

I'll refer you to the readme.
« Last Edit: March 26, 2019, 01:13:23 PM by Wisp »

Offline K4thos

  • Planewalker
  • *****
  • Posts: 110
Re: TriggerOverride syntax problem
« Reply #2 on: March 26, 2019, 01:53:13 PM »
thanks

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: