2 Replies Latest reply on Feb 26, 2010 2:31 AM by braxton

    How to create an amount of parentheses based on a numerical variable.

    braxton

      Title

      How to create an amount of parentheses based on a numerical variable.

      Post

      I am basically making a database that will create the verbiage for a calculation.  I need to make an number of parentheses in a row.  The amount of parentheses would be based on a variable.  For example:

       

      If n = 2 the function would generate:  ))

      If n = 5 the function would generate:  )))))

       

      What text function or other would I use to generate this text based on a variable?

       

      Thanks!