Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
OpenGround Wiki Expression and Condition Examples
    • Sign In
    • -OpenGround Wiki
      • -Applications
        • +Admin Portal
        • +Civil 3D Extension
        • +Data Collector
        • +Data Entry Module
        • +Excel Extension
        • +Launcher
        • +OpenGround Professional
        • +Portal Technical Preview
        • +Power BI Connector
        • -Template Studio
          • Template Studio Release Notes
          • +Template Studio How Tos
          • +Template Studio FAQ's
          • +Template Studio Common Issues
          • -Template Studio User Guide
            • +Working with Templates
            • +The Interface
            • Important Template Settings Information
            • +Using Template Studio
            • +Template Setup
            • +Column Configuration
            • +Depth Related Items
            • +Designing Header and Footer Areas
            • +Designing Tables
            • +Filter Groups
            • -Types of Template
              • Borehole Log
              • Header Sheet
              • Combined Log
              • +Master Templates in Studio
              • -Dynamic Logs
                • Dynamic Template Description Bars
                • Expression and Condition Examples
                • Setting Up a Dynamic Log
              • Site Plans
              • Sections and Civils Sections
              • Strips
              • +Combined Templates
              • Project Sheets
            • +Powerful Expressions
        • +Upload Portal
        • +Web API and Task Service
        • +Web Portal
      • +Guides and Learning
      • OpenGround Supported Platforms
      • +How To Contact Support
      • Component Center
      • Events
      • Training Guides
      • +Developer Resources

     
     Questions about this article, topic, or product? Click here. 

    Expression and Condition Examples

    The following expression queries the Depth Related Exploratory Hole Information table and queries whether the current location type is Cable Percussion, if it is, it will return CP, if it isn’t, it will then query if the location type is Rotary Core, if it is, it will return RC, else it will return other.

    if([DepthRelatedExploratoryInformation.Type]='CP','CP',if([DepthRelatedEx-ploratoryInformation.Type]='RC','RC','Other'))

    The following expression is slightly more complicated as it queries the Field Geological Descriptions table and queries whether the child record in the soil or rock tables is soil, if it is, it will return Soil, if it isn’t, it will then query if the child record is Rock, if it is, it will return Rock, else it will return Other.

    if(countrecords([Aggregate.FieldGeologicalDescriptionsSoil.AdditionalDescription]) > 0, 'Soil', if(countrecords([Aggregate.FieldGeologicalDescriptionsRock.AdditionalDescription]) > 0,'Rock','Other'))
    • Share
    • History
    • More
    • Cancel
    • Stephen Evason Created by Bentley Colleague Stephen Evason
    • When: Tue, May 31 2022 7:30 AM
    • Revisions: 1
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies