If Parameter Empty than

Hi,

our projekt name depents on a system like aaaa-bbb-cccc and for some projects aaaa-bbb-ccc-dddd … Now i tried to use dynamo to write the parameters into the Revit parameter projekt name. Now my problem: how can i say to dynamo if. dddd="" than…
May somebody can help me…
I don’t want to make 2 different project layouts…

thanks

Hi and welcome!

Do you mean this?

Projectnummer.dyn (33.8 KB)

hi,

sorry it was my fault. i mean following:

SPT_SK_PROJEKTNUMMER_KKKK = AAAA
SPT_SK_PROJEKTNUMMER_AAA = BBB
SPT_SK_PROJEKTNUMMER_NNNN = CCCC
SPT_SK_PROJEKTNUMMER_BXXX = DDDD
Projectnumber:
AAAA-BBB-CCCC
or
AAAA-BBB-CCCC-DDDD

However if the Parameter SPT_SK_PROJEKTNUMMER_BXXX is “” than i get

AAAA-BBB-CCCC-

thanks

All those parameters are always available?

BTW, can you show me some outputs in youre project?

Yes they are always available!

They are only text parameters. I need them for the exprot into a planlist…
for Example the SPT_SK_PROJEKTNUMMER_BXXX is empty

the output

image

but there ist one “-” to much

Ah okay, in this example bxxx is empty. Is this the only parameter that can be empty or can all the parameters be empty?

Yes this one can be empty… it depend’s an the project…

@Domi1982 like this?

Okay, you need this?
Projectnummer.dyn (21.7 KB)

thanks, but with this my result:

image
image

The “-” after the CCCC is away but now there is no BBB

:wink:

That’s weird. Is one of the nodes disconnect?
Look you script like this?

Please export your graph :slight_smile:
image

NB: the node with the test inside give the right value as example.

Here is the node

Yess i found the problem


the yellow one was missing

thanks a lot…

:grinning: :grinning: :grinning: :grinning:

1 Like