包含在 power automate desktop 中的多个条件

Multiple conditions with contains in power automate desktop

我想在 Power Automate Desktop 中评估一个 If 语句中的多个条件。我已经能够使用基本运算符(=、>、<、<> 等)并使用 IsEmpty 来做到这一点。但是我还没有找到任何关于如何将它与这些一起使用的文档:

我想这样评价:

%strFileContents Contains 'word' and strFilePath Does not contain '.txt'%

我知道我可以用多个 ifs 来实现这个,但我想知道它是否可以在一个 ifs 中完成。

谢谢。

%Contains(strFileContents, 'Word', True) AND NOT(Contains(strFilePath,'.txt.))%

您可以根据需要添加任意数量的 ANDOR 来评估条件。