photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: sinus on August 08, 2017, 09:08:47 AM

Title: Variables with 0,00
Post by: sinus on August 08, 2017, 09:08:47 AM
Hi,
Again one of my beloved variable-questions.  ;D

If I have a text in a tag, like CHE in the country-code, I can use this variables

{File.MD.XMP::iptcCore\CountryCode\CountryCode\0|is:CHEX,True,false}

This means, if the tag has a value CHEX, this is false and IMatch returns false, what is correct.

First question:
I have a numeric tag in the attributes, what is empty (not filled), but IMatch fills automatically 0,00
I tried this with the variable above and with numcomp, but nothing helped.

Because if I write for such a tag, what has 0,00 (not filled out)

{File.AT.Verrechnung.Spesen|numcomp:eq,00,true,false}
IMatch returns correct true.
But IMatch returns this also, if I have as a value 12,00

So how could I get rid of the value 0,00 in such a attribute-tag?
I tried also in the attributes, that IMatch does not write 0,00 when I do not touch such a numeric field, but without success.

I found no way, and maybe there is no way.




Title: Re: Variables with 0,00
Post by: Mario on August 08, 2017, 09:53:50 AM
{File.AT.Notes.Real|numcomp:eq,0,is null,not null}

works great here. If the Real Attribute is 0, the variable returns "is null" else it returns "not null".

What data type does Spesen have? Is it a real? Or a string?
Title: Re: Variables with 0,00
Post by: sinus on August 08, 2017, 01:28:20 PM
Quote from: Mario on August 08, 2017, 09:53:50 AM
{File.AT.Notes.Real|numcomp:eq,0,is null,not null}

works great here. If the Real Attribute is 0, the variable returns "is null" else it returns "not null".

What data type does Spesen have? Is it a real? Or a string?

Mario,
The data type from Spesen is a real attribut-field.

and you are again correct. Your variables works perfekt.
This is what I could not find out.  ::)

When I have this lines:
first  line
{File.AT.Verrechnung.Spesen}
third line
{File.AT.Verrechnung.Spesen|numcomp:eq,0,,not null}
fifth line

Then the result is this:
first line
0,00
Third line

fifth line


means, I have there an empty fourth line, what is absolutely correct and this is, what I searched for. Thanks very much!

One last question for this "problem":
The fourth line in the result above is correct empty.
I do this with Print & Design.

My question:
If the result like above has one empty line, this empty space cannot be filled with the fifth line? (so dass die fünfte Linie nach oben rückt, um die leere vierte Zeile zu füllen)
To be honest, I see no way, that this could work, hence I ask only, to be sure.  8)









Title: Re: Variables with 0,00
Post by: Mario on August 08, 2017, 01:49:35 PM
Of course it can. Easy to do.

Think about this:

{File.AT.Verrechnung.Spesen|numcomp:eq,0, fifth part , {File.AT.Verrechnung.Spesen} }

This prints "fifth part" when Spesen is 0, else it prints Spesen.
Title: Re: Variables with 0,00
Post by: sinus on August 08, 2017, 02:03:32 PM
Sometimes I see not more the forest, only a lot of trees!  :-[ Blind.  8)

Thanks a lot, Mario, I will check this out!

BTW: D&P is still great, I can even replace a variable with an icon, like in the Window Layout. A great tool.
Title: Re: Variables with 0,00
Post by: Mario on August 08, 2017, 02:05:03 PM
Design & Print is immensely useful, flexible and powerful. For users who have a demand.