# Copies giving error

**URL:** <https://forums.sketchup.com/t/copies-giving-error/103261>\
**Category:** Dynamic Components\
**Created:** [September 14, 2019, 3:50am UTC](https://forums.sketchup.com/t/copies-giving-error/103261 "2019-09-14T03:50:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerson](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/gerson/32/75416_2.png) [@Gerson](https://forums.sketchup.com/u/Gerson)\
**Post date:** [September 14, 2019, 3:50am UTC](https://forums.sketchup.com/t/copies-giving-error/103261/1 "2019-09-14T03:50:05Z")

</div>

Hello, I’m new here, I have a problem with the settings of each drawer copy, can you help me?

 ![Capturar](https://global.discourse-cdn.com/sketchup/original/3X/a/8/a87aa74e5ccd49b2f8f25307de61b88b4f2bc3e5.jpeg)

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [September 14, 2019, 7:10am UTC](https://forums.sketchup.com/t/copies-giving-error/103261/2 "2019-09-14T07:10:22Z")

</div>

copy is an integer, 0,1,2,3,4 etc  
if(copy=0,40,if(copy=1,45,if(copy=2,60,50)))  
you can view this read only attribute by clicking on one of the copies and look at its attributes

---

<div class="post-metadata">

**Author:** ![Gerson](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/gerson/32/75416_2.png) [@Gerson](https://forums.sketchup.com/u/Gerson)\
**Post date:** [September 14, 2019, 11:33am UTC](https://forums.sketchup.com/t/copies-giving-error/103261/3 "2019-09-14T11:33:16Z")

</div>

I already tried and the error persists …

 ![Capturar](https://global.discourse-cdn.com/sketchup/original/3X/7/a/7a1c06524948632414fbc7c1f77e8cf0d675d19f.jpeg)

Sorry English, I’m using the translator

---

<div class="post-metadata">

**Author:** ![DaveR](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/daver/32/7601_2.png) [@DaveR](https://forums.sketchup.com/u/DaveR)\
**Post date:** [September 14, 2019, 11:50am UTC](https://forums.sketchup.com/t/copies-giving-error/103261/4 "2019-09-14T11:50:28Z")

</div>

If the comma is used as a decimal separator, should it be something like the following using a semicolon?

if(copy=0;40;if(copy=1;45;if(copy=2;60,50)))

---

<div class="post-metadata">

**Author:** ![Gerson](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/gerson/32/75416_2.png) [@Gerson](https://forums.sketchup.com/u/Gerson)\
**Post date:** [September 14, 2019, 11:57am UTC](https://forums.sketchup.com/t/copies-giving-error/103261/5 "2019-09-14T11:57:52Z")

</div>

Using semicolon, error continues

 ![Capturar](https://global.discourse-cdn.com/sketchup/original/3X/a/d/adcbfcb28fa1222fe89c7238091ea2862f080475.jpeg)

---

<div class="post-metadata">

**Author:** ![DaveR](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/daver/32/7601_2.png) [@DaveR](https://forums.sketchup.com/u/DaveR)\
**Post date:** [September 14, 2019, 12:07pm UTC](https://forums.sketchup.com/t/copies-giving-error/103261/6 "2019-09-14T12:07:24Z")

</div>

Have you tried commas and then a . for the decimal separator?

---

<div class="post-metadata">

**Author:** ![Gerson](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/gerson/32/75416_2.png) [@Gerson](https://forums.sketchup.com/u/Gerson)\
**Post date:** [September 14, 2019, 12:09pm UTC](https://forums.sketchup.com/t/copies-giving-error/103261/7 "2019-09-14T12:09:30Z")

</div>

I already tested

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [September 14, 2019, 10:21pm UTC](https://forums.sketchup.com/t/copies-giving-error/103261/8 "2019-09-14T22:21:35Z")

</div>

I stand corrected, I tested 001,002 and they do work as well as just 0,1,2, both original formulas work, the “error” is that the result is not being referenced by the children.

You need to post the file.

@DaveR The use of a semi-colon produces an error, hence the red font, I believe the syntax of DCs are universal. Except for an error if using smart quotes on a Mac. But I would have considered it too.

---

<div class="post-metadata">

**Author:** ![DaveR](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/daver/32/7601_2.png) [@DaveR](https://forums.sketchup.com/u/DaveR)\
**Post date:** [September 14, 2019, 10:48pm UTC](https://forums.sketchup.com/t/copies-giving-error/103261/9 "2019-09-14T22:48:48Z")

</div>

> [@pcmoor](#):
>
> I believe the syntax of DCs are universal.

So . instead of , as decimal separator?

---

<div class="post-metadata">

**Author:** ![MikeWayzovski](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mikewayzovski/32/98346_2.png) [@MikeWayzovski](https://forums.sketchup.com/u/MikeWayzovski)\
**Post date:** [September 14, 2019, 10:58pm UTC](https://forums.sketchup.com/t/copies-giving-error/103261/10 "2019-09-14T22:58:47Z")

</div>

You can search the function on top of the Component Atttibutes Panel and click the insert button.

This should give the right seperator, for instance  
IF(test,ThenValue,ElseValue)

The decimal seperator is indeed universal (“.”)  
I am not sure if the arguments seperator is, though

In the given example, the second seperator for the function’s arguments is missing/swapped ( “,” instead of “;”)

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/4/f/4f7e8d9be48f96bda9935cdc7f8814a555ae02a8.jpeg)

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [September 15, 2019, 2:00am UTC](https://forums.sketchup.com/t/copies-giving-error/103261/11 "2019-09-15T02:00:48Z")

</div>

syntax is important in code, variations are evaluated differently, the use of the semicolon in this case seems to be evaluated as 0. So the red error is in reference to copia, which can not be found, not the semicolon as I first assumed.

---

<div class="post-metadata">

**Author:** ![Gerson](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/gerson/32/75416_2.png) [@Gerson](https://forums.sketchup.com/u/Gerson)\
**Post date:** [September 15, 2019, 11:22am UTC](https://forums.sketchup.com/t/copies-giving-error/103261/12 "2019-09-15T11:22:50Z")

</div>

Really, what was happening, that the copies were not being found,

THANKS! ALL FOR HELP
