Skip to main content
shobhits0002
April 26, 2023
Solved

I want to show 'No URL' where url is not available ("") for any party. But that needs an indexing. Can someone please suggest how can I do the index to get the actual result

  • April 26, 2023
  • 3 replies
  • 0 views

Hi,

I want to show 'No URL' where url is not available ("") for any party. But that needs an indexing. This is for one party. If we want to do it for multiple parties, Can someone please suggest how can I do the index to get the actual result

    Best answer by shobhits0002

    Thanks, I got the answer.

    3 replies

    shobhits0002
    shobhits0002AuthorAnswer
    April 26, 2023

    Thanks, I got the answer.

    April 26, 2023

    One more way

    apply(if(rule!APN_isBlank(_), "No URL", _), local!url)

    mikes0011
    Brainy
    April 26, 2023

    That works, but also, it's kinda going backwards.  a!forEach() is supposed to negate the need for almost any of the primitive looping functions (afaik the only one it can't directly replace is reduce()).  And for good reason - the primitive functions and partial evaluation are a nightmare for code readability and maintainability.