#[RESOLVED] [Molang][error] Querry

1 messages · Page 1 of 1 (latest)

bitter flame
#

Error: complex expressions (contains either '=' or ';') must end with a ';'

"scripts": {
    "animate": [
        {
            "first_person_hold": "c.is_first_person && query.time_of_day = 0.0"
        },
        {
            "third_person_hold": "!c.is_first_person && query.time_of_day = 0.0"
        }```
#

[Molang][error] Querry

normal fossil
bitter flame
#

tried everywhere

normal fossil
#

Right at the end

... 0.0;"
bitter flame
#

oh

#

didnt think of that lol

normal fossil
#

Also you should use == for comparison

bitter flame
#

yea fixed it

bitter flame
#
"scripts": {
    "animate": [
        {
            "first_person_hold": "c.is_first_person && query.time_of_day == 0.0;"
        },
        {
            "third_person_hold": "!c.is_first_person && query.time_of_day == 0.0;"
        },
        {
            "first_person_hold_c1": "c.is_first_person && query.time_of_day =! 0.0;"
        },
        {
            "third_person_hold_c1": "!c.is_first_person && query.time_of_day =! 0.0;"
        }
    ]
}```
#

its reffering to the second part

normal fossil
#

Change =! to !=

bitter flame
#

thank u for your help