Forum Discussion

FICO's avatar
FICO
Community Manager
2 years ago

The assignment target is invalid. You can assign values only to variables, properties and indexed properties

Hi There,

When I am comprising enum to enum then getting this error msg.

for comprising I am using =, is, and .equals(object)

The assignment target is invalid. You can assign values only to variables, properties and indexed properties

Thanks

Kishan

1 Reply

  • FICO's avatar
    FICO
    Community Manager

    I'm not clear what you are trying to do here. Enums are fixed values, and each one would be different from each other, so it doesn't make sense to me to check if two enums are equal to each other. Can you please explain more fully what you are trying to do?