[Solved] Calculations - If condition for multiple types of data

More
2 years 3 months ago #23417 by prashant
Sharing something so others in future don't waste tonnes of time on it

I had a calculation condition where I wanted to check
F001<1
F002='pending'
Code:
begin     if F001 < 1 and F002 = 'pending' then          Result := 'Delayed'; end;

Above kept me mismatch error , I broke it down into individual condition and it worked. then chatgpt proposed below which works
Code:
begin     if ((F001 < 1) and (F002 = 'pending')) then          Result := 'Delayed'; end;

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save