SBX - Search With Button

SBX - Forum Post Title

If Condition

Microsoft Dynamics NAV Forum

jsshivalik asked a question on 11 Oct 2017 11:53 AM
My Badges

Question Status

Verified

Hi

  I want to check that if condition is not true in If condition that

Posting Date should be >= GetRangeMin(Posting date) and GetRangeMax <= (Posting Date). then it should display message.

Thanks

Reply
Mohana Yadav responded on 11 Oct 2017 12:00 PM
My Badges
Verified Answer

IF NOT (your condition) THEN

Reply
Zaid Tariq responded on 11 Oct 2017 1:15 PM
My Badges

IF I am not wrong you want something like this:

IF ((Posting Date >= GetRangeMin(Posting date)) AND  (GetRangeMax(Posting Date) <= Posting Date)) THEN

MESSAGE('HELLO'); 

Reply
Suresh Kulla responded on 12 Oct 2017 10:01 AM
Suggested Answer

As Mohana mentioned you could use IF NOT. Could you tell us what is your requirement and you condition does not look right to me.

Reply
Manish Sharma responded on 12 Oct 2017 11:59 PM
My Badges

You can find this condition in Codeunit 13, where it checks posting date is in range of allowed posting date for user.

Reply
Mohana Yadav responded on 11 Oct 2017 12:00 PM
My Badges
Verified Answer

IF NOT (your condition) THEN

Reply
Suresh Kulla responded on 12 Oct 2017 10:01 AM
Suggested Answer

As Mohana mentioned you could use IF NOT. Could you tell us what is your requirement and you condition does not look right to me.

Reply

SBX - Two Col Forum

SBX - Migrated JS