I got some error and the Y placing is not going as I want, what does the attribute 0.0 not found mean?
It makes it easier to help if you can post the model you are working on.
Your If statement is incorrect, should look like this:
=IF(Condition1, Return1, IF(Condition2, Return2, Return3))
I think my IF is correct
=IF(Position=2, AlignX, IF(Position=3,Tuinkamer!A11_TotalWidth-AlignX, IF(Position=1, current(âyâ)*2.54)))
Thanks! I will check what I have done wrong.
Ack! Capitalization matters! âyâ is not âYâ?
Doesnât the ruby convert it into all lowercase anyways for processing? Example: you cannot have âBIGâ and âbigâ as attributes. What does it effect if you do not respect the CAPS? Other than the obvious its just good practice to keep it consistent.
No, Ruby itself does not change capitalization (though I donât know what the DC code itself might do - it is closed source). But in general, a string containing a lower case y is a different thing than one containing an upper case Y.
The problem was with the third return value?
Does the if always need an else?
Yes it does.
If found out when editing attribute function the wrong quote sing is inserted.
=LARGEST(CURRENT(âLenYâ)*2.54, 605, CURRENT("LenYâ)*2.54)
You can see the last quote â is wrong.
What can I do about this?
Turn off smart quotes on your Mac.
Thanks, that was my problem!
Ahh those dam smart quotes. They get everybody who DCs on a Mac at some point.
There is nothing smart about them. Apple has just let an half-obscure American typographical feature mess up the typing of a large part of the humanity. Europeans, for instance, have totally different rules about quote marks.
Hahaha, dumb quotes.
« indeed we do » he said, rolling his french eyes up.
also, in some countries, they still use the âanglo saxonâ quote marks, but in some other places, they use a âdifferent pair, not just straight onesâ
Oh come on, this has little to do with Apple. Microsoft Word also supports smart quotes. The OPâs problem arose from using a word processor app to enter code instead of a code editor app.
It has to do with the conflict between English language keyboards (which have a single key for both opening and closing quotes) vs typesetting conventions that have long had distinct âcurly quoteâ marks that differ between opening and closing, just as we have (),,{}, and Europeans have the double chevrons.
âSmart quotesâ refers to data entry code that automatically converts straight quotes into curly quotes by detecting the start and end of a quoted block.
The conflict extends to computer character encoding, in which early systems such as ASCII didnât have enough bits to encode both kinds, so they supported only the typewriter âstraightâ version. So, most programming languages donât understand curly quotes. Correspondingly, code editing apps normally generate only straight quotes.
A problem still arises when text that originally contained only straight quotes is fed through a formatter that implements smart quotes - such as the markdown used by this forum. When posting code, unless you follow the correct process of setting it out with leading and trailing triple-backticks, the quotes will be smartened and cut-n-paste of a Ruby snippet will cause a syntax error.