List Icon
Archiv Mailingliste

2019 bis Juli 2022  2018  | 2017 2016 2015 | 2014 | 2013

Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren Newsletter abonnieren:
Newsletter abonnieren


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] 'if' condition for string


  • Subject: Re: [QF-Test] 'if' condition for string
  • From: Martin Moser <martin.moser@?.de>
  • Date: Thu, 05 Sep 2013 10:32:28 +0200

Hi Richard,

'$(var)' == "whatever" works as well as long as you have no special
characters like backslashes or any language specific characters.

rc.lookup("var") takes care about escaping those characters correctly.

Best Regards,
Martin


--On Mittwoch, September 04, 2013 13:38:42 +0000 Richard Goulet
<Richard.Goulet@?.com> wrote:

Hi,

One of my co-workers discovered that in a string comparison in a 'if'
node can be written: '$(strVar)' == "whatEverString"
Instead of:
rc.lookup("strVar") == "whatEverString"
like it is recommended in the technical manual.

As I didn't find this in the book, tell me your opinion about this and is
this error prone?

Thanks


Richard Goulet
Assurance Qualité/Quality Assurance
Ixiasoft Ltée
825 Querbes
Montréal, Qc, H2V 3X1
T : 514-279-4942
F : 514-278-5415
richard.goulet@?.com<mailto:richard.goulet@?.com>
www.ixiasoft.com<http://www.ixiasoft.com/>




--
Martin Moser
Development & Support

E: martin.moser@?.de
T: +49 (0)8171 38648-14
F: +49 (0)8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Karlheinz Kellerer
HRB München 140833