Skip to content

$if neq checks broken since global values were added #3369

@dennisrijsdijk

Description

@dennisrijsdijk

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

in the $if variable, neq (eg. $if[0 != 0, true, false]) operators always seem to return true, even if they should return false

I've bisected this to b3d6f4c and confirmed that removing the lookup handler for ! fixes the issue (but obviously, breaks the shorthand)

Expected Behavior

Running $if[0 != 0, true, false] should return false instead of true

Steps To Reproduce

  1. Start Firebot v5.65.0
  2. Open an Effect List and create a Show Toast Notification effect
  3. Enter $if[0 != 0, true, false]
  4. Run the effect and notice that the toast says true, instead of the expected false

Version

v5.65.0

What operating system are you using Firebot on?

Windows 11

Relevant log output

Contact Details (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions