Dear Pablo,

Changing scancsv to handlecsv is enough in my all documents (at least the ones 
I tested).  Now, all works fine. Thanks again.

 Jorge


> No dia 17/09/2018, às 19:34, Pablo Rodriguez <oi...@gmx.es> escreveu:
> 
> 
> On 9/17/18 7:50 PM, Jorge Manuel wrote:
>>> [...]
>>> My guess is that you need to enclose text strings in quotes, so that
>>> your conditionals read:
>>> 
>>>  \doloopif{\Flag}{~=}{"anl"}{\lineaction}
>>>  \doloopif{\Flag}{==}{"anl"}{\lineaction}
>> 
>> Thanks for your reply. This code don’t work.  I would try your
>> handlecsv module. I need to adapt my old .tex files.
> I was wrong. Quotes aren’t required.
> 
> See minimal example (which works both with handlecsv and scancsv):
> 
>    \usemodule[handlecsv]% scancsv works too
>    \opencsvfile{cities.csv}
>    \starttext
>    \startbuffer
>    This is located in Germany: \cA\par
>    \stopbuffer
>    \section{Cities in Germany}
>    \doloopif{\cB}{==}{Germany}{\getbuffer}
>    \section{Cities not in Germany}
>    \doloopif{\cB}{~=}{Germany}{\getbuffer}
>    \stoptext
> 
> Contents from "cities.csv" read:
> 
>    "Berlin";"Germany"
>    "Paris";"France"
>    "London";"UK"
>    "New York";"USA"
>    "Munich";"Germany"
>    "Lisbon";"Portugal"
>    "Dublin";"Ireland"
>    "Warsaw";"Poland"
>    "Vienna";"Austria"
>    "Barcelona";"Spain"
> 
> Just in case it helps,
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to