Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

X++ if else statement

(0) ShareShare
ReportReport
Posted on by 70

Hello there,

how should I type the x++ code to be able to fill a list page from salary 1 to salary 2 to salary 3 etc...

what meant is the first expected salary will be placed under salary 1, if the salary is not accepted by the applicant and the user added a new salary , the new salary will be placed under salary 2 and if not accepted will be moved to the third salary box and etc...

thanks in advance,

Akl

  • Martin Dráb Profile Picture
    Martin Dráb 231,407 Most Valuable Professional on at
    RE: X++ if else statement

    Can you give us more information about the logic, please?

    By the way, the category of your question should be Development / Customization / SDK. Let me change it.

  • RE: X++ if else statement

    you could try in the following way

    if (salary1 condition)
    	logic here
    else if (salary2 condition)
    	logic here
    else if (salary3 condition)
    	logic here
    .
    .
    else
    	default logic here

  • AklG Profile Picture
    AklG 70 on at
    RE: X++ if else statement

    thank youu.

    but for the first else , if I use the else if statement what would be the condition?

  • RE: X++ if else statement

    Use if.. elseif statement that should help here

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans