I get stuck on this seemingly simple expression...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-04 12:04 PM
Hi,
I have properties and want to drive values from combinations of these properties but I can't figure out how to. Any takers?
Br,
Mats
Operating system used: Windows
Solved! Go to Solution.
- Labels:
-
Classifications & Properties
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-05 01:27 AM
I am not sure if it is applicable in this case, but I have found depending on the language version of Archicad or maybe your operating system, some need to use semi-colons as expression separators and others need to use commas.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-04 12:30 PM - edited ‎2024-11-04 12:38 PM
Hi Mats, if you mean like the little formula beneath try something along the lines of:
IFS (
AND ( Type="A"; Material="yy";etc..); "100";
AND ( Type="B"; Material="zz";etc..); "200";
...
)
Hope that helps!
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-04 04:28 PM
Nope, tried that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-04 06:03 PM
like this with a number type property
IFS ( AND ( {Property:Généralités/Type} = "A"; {Property:Généralités/Material} = "xx"; {Property:Généralités/Accessory} = "1" ); 100; AND ( {Property:Généralités/Type} = "B"; {Property:Généralités/Material} = "yy"; {Property:Généralités/Accessory} = "1" ); 200 )
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-04 08:38 PM
Got it to work. Thanks! Seems like the same code as Lucas suggested. I don't know went wrong earlier...
I get grey hair from the syntax and the editor....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-05 01:27 AM
I am not sure if it is applicable in this case, but I have found depending on the language version of Archicad or maybe your operating system, some need to use semi-colons as expression separators and others need to use commas.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-05 08:44 AM
I've got that settled so it was something else. I must have missed something somewhere.
I will write to full expression (it will be quite massive) in a text editor and then paste it into AC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-11-05 09:09 AM
Do note, that the ifs function might have a limit. It does have one in excel and I wouldn't be suprised if it has one in ArchiCAD expressions too.
https://support.microsoft.com/en-GB/office/ifs-function-36329a26-37b2-467c-972b-4a39bd951d45
I once had this issue of a massive expression with a few hundred conditions. ArchiCAD performance will suffer noticeably!
If you reach more than the maximum you'll have to get creative on how to implement the expression(s) and how to improve performance again.
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti