IF ELSE AND OR problems
air_wolf
Member Posts: 13
hello,
I have the following syntax:
when I have this:
the expressions are not evaluated and it stops.
I have the following syntax:
IF SalesOrder."No." <> 'value' THENthis is evaluated correctly and it goes further.
when I have this:
IF ((SalesOrder."No." <> 'value1') OR (SalesOrder."No." <> 'value2')) THENor
IF (SalesOrder."No." <> 'value1') OR (SalesOrder."No." <> 'value2') THEN
the expressions are not evaluated and it stops.
0
Answers
-
Use AND instead of ORNo support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Or what about?
IF NOT (SalesOrder."No." IN ['value1','value2']) THEN
0 -
solved. can be closed. Luc Van Dyck was right. me stupid ](*,)0
-
please use a relevant title in subject...Helps searching for others...0
-
Please remove the [solved] in your topic title. We now use a green checkmark to indicate a question has been solved. This checkmark is displayed when you set the Attribute of the topic to "Solved!". The Attribute is a field that is below the Subject-field, when you edit the first message in this thread.air_wolf wrote:solved. can be closed. Luc Van Dyck was right. me stupid ](*,)
And while you are changing the topic title, you can just as well change it to "I'm really stupid".No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
solved.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
