• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Dynamic Component IF statement text comparison

Scheduled Pinned Locked Moved Dynamic Components
sketchup
4 Posts 2 Posters 5.3k Views
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 10 Dec 2016, 22:49

    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 11 Dec 2016, 00:41

      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 11 Dec 2016, 03:54

        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 11 Dec 2016, 20:25

          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
          1 / 1
          • First post
            4/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement