Ad Widget

Collapse

Time parameter not working as expected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asantana
    Junior Member
    • Apr 2012
    • 10

    #1

    Time parameter not working as expected

    I set this command: {server:system.users.num.last(0)}#1&{server:system .users.num.time(0)}&<060000{server:system.users.nu m.time(0)}>205959

    I want this trigger fire before 06:00:00 and after 20:59:59, if more diferent that 1 user (system user) is logedon that time, And is not working, Why???
  • anpat89
    Junior Member
    • Jun 2012
    • 17

    #2
    Perhaps the syntax is wrong on the command..

    When joining multiple items together, brackets must be used to contain each algorithm.

    Try this formatting with standard brackets around each calculation
    ({server:system.users.num.last(0)}>1)&({server:sys tem.users.num.time(0)})& (<060000{server:system.users.num.time(0)}>205959)

    Also I'm not sure whether the first algorithm should contain the # as you stated or a greater than symbol. You want it to trigger when there is more than 1 user right?
    Hope this helps.
    Kind Regards,
    Andrew.

    Comment

    • JBo
      Senior Member
      • Jan 2011
      • 310

      #3
      Hi,

      You have a logic error: "<060000" and ">205959" cannot both be true at the same time.

      {server:system.users.num.last(0)}#1&({server:syste m.users.num.time(0)}<060000 | {server:system.users.num.time(0)}>205959)
      should work better.

      Hope this helps,
      JBo

      Comment

      Working...