Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Alma

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Alma
    3. Knowledge Articles
    4. The "if" condition in my normalization rule does not work

    The "if" condition in my normalization rule does not work

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Resolution
    3. Additional Information
    • Product: Alma

    Description

    I have a normalization rule with an "if" condition, but on saving I get a compilation error. This is the line in the rule containing the condition:

    addSubField "040.b.ita" if (existsControl "008.{35,3}.ita")

    Resolution

    The "if" condition works on the field level only. When you are working with field 040, you can only add conditions for field 040.

    Use the "when" condition, which is working on the record level. The following example will work:

    when
    (existsControl "008.{35,3}.ita")
    then
    addSubField "040.b.ita"
    end

    Additional Information

    For more information on working with wildcards and special characters in normalization rules, view our documentation here.


    • Article last edited: 27-JAN-2020
    View article in the Exlibris Knowledge Center
    1. Back to top
      • text from "Letter emails" not found in the messages
      • The "Policy" column of the Primo GetIt tab - where is this info coming from, for authenticated users?
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      English
      Product
      Alma
    2. Tags
      This page has no tags.
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved