I have a query with
"=FactLabel(%FACT%)",,"contains",TEXT,"JGO"
Works fine.
I am trying to put the same thing into a Diagram Box Expression.
e.g. =ContainsText(FactLabel(%FACT%),"JGO",STD) which does not work.
My current fix is to have a Box condition for each %FACT% but I was hoping there would be a neater way.
e.g. multiple %INDI.EVEN-xxxJGOyyy[1+]%
Alternatively, is there a way to have a list of Boolean OR expresions in 1 condition.
* Diagram Box Expression, FACT ContainsText
- jimlad68
- Megastar
- Posts: 911
- Joined: 18 May 2014 21:01
- Family Historian: V7
- Location: Sheffield, Yorkshire, UK (but from Lancashire)
- Contact:
Diagram Box Expression, FACT ContainsText
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68
- tatewise
- Megastar
- Posts: 27079
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Diagram Box Expression, FACT ContainsText
Yes, %FACT% only has meaning in the context of a fact, i.e. in a Fact Query or in a fact Sentence Template.
It does not know what Fact to refer to in say an Individual Query or a Diagram Box Expression.
Sorry, but there are no wild card or looping index neater solutions that I can think of
However, you can have boolean expressions using the =IsTrue(...) function.
e.g.
=IsTrue( Exists(%INDI.EVEN-ABCJGOXYZ%) or Exists(%INDI.EVEN-XYZJGOABC%) or ... )
It does not know what Fact to refer to in say an Individual Query or a Diagram Box Expression.
Sorry, but there are no wild card or looping index neater solutions that I can think of
However, you can have boolean expressions using the =IsTrue(...) function.
e.g.
=IsTrue( Exists(%INDI.EVEN-ABCJGOXYZ%) or Exists(%INDI.EVEN-XYZJGOABC%) or ... )
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- jimlad68
- Megastar
- Posts: 911
- Joined: 18 May 2014 21:01
- Family Historian: V7
- Location: Sheffield, Yorkshire, UK (but from Lancashire)
- Contact:
Re: Diagram Box Expression, FACT ContainsText
Thanks again Mike, that works a treat, I like a bit of Boolean. I will keep this in place, but in this instance it might be simpler to have multiple conditions, but I am sure I will use the =IsTrue(...) function in the future.
I'm sure it is nothing to worry about with LUA and modern PCs, but I often wonder if lots of nesting/Booleans is more or less efficient than lots of separate commands.
I once created a complex troubleshooting mainframe SQL query (a lot of trial and error), only to be told it was a pain for the on call programmers to understand, and if it was production it would be very inefficient!
I'm sure it is nothing to worry about with LUA and modern PCs, but I often wonder if lots of nesting/Booleans is more or less efficient than lots of separate commands.
I once created a complex troubleshooting mainframe SQL query (a lot of trial and error), only to be told it was a pain for the on call programmers to understand, and if it was production it would be very inefficient!
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68