Mailingliste - Einträge 2013
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [QF-Test] 'if' condition for string
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
|