Working code
It is currently May 2nd, 2024, 5:46 am
I can't substitute an empty domain name
-
- Posts: 52
- Joined: June 15th, 2011, 7:23 pm
- Location: Bulgaria, Varna
I can't substitute an empty domain name
So here is what I want to accomplish - I get the name of the current domain. If the measure returns no value I want a meter to say that you are not part of a domain. If the returned value is different from nothing, then it's displayed as it is. I have written a similar measure and everything works fine. I guess there is something wrong with the substitute. Here is my code
Working code
Non working code
Working code
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: I can't substitute an empty domain name
Substitutes only change the string value of a measure. So you need to use the string value, rather than the number value. To do this, just put brackets around the measure name:
Code: Select all
[CheckIfConnectedToDomain]
Measure=Calc
DynamicVariables=1
Formula=[GetDomain]
IfEqualValue=1
IfEqualAction=!SetVariable Domain "#NoDomain#"
-
- Posts: 52
- Joined: June 15th, 2011, 7:23 pm
- Location: Bulgaria, Varna
Re: I can't substitute an empty domain name
I knew I was missing somethinh simple. Thanks a lot