FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Code Expressions multiple conditions issue #4906

Open vinaykoulur opened 6 days ago

vinaykoulur commented 6 days ago

Can we access your project?

Current Behavior

https://github.com/user-attachments/assets/2ae756bb-925f-4908-9b8a-f76f2cf03b8f

OR(||) operation behaving as AND(&&) and vice versa may be true.

Expected Behavior

Expected behavior has to be exactly opposite of the current behavior.

Steps to Reproduce

refer video

Reproducible from Blank

Bug Report Code (Required)

ITESl/Llz5dgrsNB17XTKuxQhQAkH1x/bZJEl9cbaEkcF7b2BJYXOur+VExuT9SqTVZYMGCKkmAKpdWNuNrXUvk4FzGWeINo+rluSjnLfGW6MaaQBpGzdHFtHtxhIVSB0cGzoyVdNvZoLy0Aw2z/cq3qNleeY8aSfxBlZ7vfcPo=

Visual documentation

refer video from current behaviour.

Environment

- FlutterFlow version:  v5.0.10+ released November 14, 2024
- Platform: any
- Browser name and version: chrome latest today
- Operating system and version affected: web win 11

Additional Information

No response

Alezanello commented 6 days ago

Hello!

Everything appears to be working as expected. I created a small project demonstrating the conditional logic with random strings, which you can review using your example. In the scenario shown in your video, it seems you may be using the "OR" condition, but it looks like "AND" might be more appropriate.

Project: https://app.flutterflow.io/project/qa-3052-pjae22

Video:

Screen-Recording (50).mp4

vinaykoulur commented 2 days ago

sorry I'm not talking about single conditions in code expressions. I think you have not understood the issue .Watch the video again ,everything is mentioned in the video try to reproduce as it is and I also have given access to project. ,Try again.

Alezanello commented 10 hours ago

My video also have multiple conditions in code expression, only the first two are single conditions, you can clone the project I shared and change as you please to show the error you have