sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Dynamic Component IF statement text comparison

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    4 Posts 2 Posters 5.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      hank
      last edited by

      I'd like to have a particular group within a component be hidden based on one of the component's variables. For example, if you set the variable "TYPE" to "DOUBLE", I'd like to hide certain groups. However, this formula is not working out:

      =IF(EXACT(OPENING!TYPE,"DOUBLE}"),FALSE,TRUE)

      It is not accepting "DOUBLE" as a valid comparison argument.

      Any thoughts?

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        That shoud work. You could try putting quotes around the one attribute:

        
        =IF(EXACT("OPENING!TYPE","DOUBLE}"),FALSE,TRUE)
        
        

        If not, post the model or an example model demonstrating the problem.

        Hi

        1 Reply Last reply Reply Quote 0
        • H Offline
          hank
          last edited by

          Thanks Jim. I have no idea why but my original code is now working! SU did not like the quotes around the OPENING!TYPE reference but something in adding the quotes reset the field and made it read properly again.

          I experienced this same glitch on 4 other groups I had to update in the component so it was no a fluke. I'll keep an eye out and if I can figure out what happened exactly, I'll let everyone know.

          1 Reply Last reply Reply Quote 0
          • H Offline
            hank
            last edited by

            OK, I think I figured out what was causing the problem. When you type double quotes into the dynamic component (at least in Sketchup for Mac) the double quotes are sometimes changed from " to β€œ causing the formula to throw an error.

            Thanks nonetheless for your help Jim!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement