Skip to main content

Notifications

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 230,842 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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    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?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans