Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

"?" in M syntax

Can somebody explain the meaning / function of the "?" in the statement below?

 

= Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true)

  • Hello Anonymous 

     

    is a kinda of error handling. When a column, record or list access isn't existing you normally get an error whereas you get the value null if you add the "?"

     

    Hope that helps

     

    Jimmy

3 Replies

  • Jimmy801's avatar
    Jimmy801
    Community Champion

    Hello Anonymous 

     

    is a kinda of error handling. When a column, record or list access isn't existing you normally get an error whereas you get the value null if you add the "?"

     

    Hope that helps

     

    Jimmy

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks. Any reference?

      • Jimmy801's avatar
        Jimmy801
        Community Champion

        Hello Anonymous 

         

        check out this document link 

         

        If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
        Kudoes are nice too

        Have fun

        Jimmy