web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

"if else if" like condition in data formula in Scribe

(0) ShareShare
ReportReport
Posted on by 13,758

Hi Experts, 

I hope we have many scribe experts here in the community.

I am very new to Scribe - i am in a situation where i have to check three field values which can either be 0 or 1 or null. if all source fields are "0" i have to set target to "0", if all are "1" i have to set target to "1". otherwise if any field is null or not matching is criteria it has to be null.

 

I am able to check something like below :

IF(AND(S1=0, S2=0,S3=0),"0","")

 

but how do it check other value from these fields? Like and IF , Else IF condition? 

your help is much appreciated.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Rawish,

    I have tried this but may be this would work-

    IF(AND(S1=0, S2=0,S3=0),"0",IF(AND(S1=1, S2=1,S3=1),"1",null))

  • Rawish Kumar Profile Picture
    13,758 on at

    Hi Ravi,

    Wow. I have entered this formula and scribe didn't complain about anything. Looks like its going to work :)

    Marked as verified for now. Thanks for your help.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Do confirm if it works.

  • NK Bhairi Profile Picture
    244 on at

    Hi,

    Just wondering if this is right approach,

    I am trying to set an optionset(State) value based on other optionsetvalue(Country)

    If Country is 77 set state as 18 else if country is 3 set state as 180 else null

    IF((S1=77),18,IF((S1=3),180,null)).

    This is failing with error incorrect number of function parameters, incorrect function parameter type. Any help with this?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans