【问题标题】:Multiple conditions with contains in power automate desktop电源自动化桌面中包含的多个条件
【发布时间】:2021-12-22 15:10:19
【问题描述】:

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

  • 包含
  • 不包含
  • 开始于
  • 不以
  • 开头
  • 结尾
  • 不以
  • 结尾

我想评估这样的事情:

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

我知道我可以通过多个 if 来实现这一点,但我想知道它是否可以在一个 if 中完成。

谢谢。

【问题讨论】:

    标签: if-statement conditional-statements power-automate power-automate-desktop


    【解决方案1】:
    %Contains(strFileContents, 'Word', True) AND NOT(Contains(strFilePath,'.txt.))%
    

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

    【讨论】:

    • 谢谢!有效。你知道我在哪里可以找到任何关于如何使用像这样的条件的文档吗?
    • 很遗憾没有。通常只需要“弄清楚”
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-24
    • 2019-02-03
    • 1970-01-01
    • 1970-01-01
    • 2020-11-03
    • 2021-06-25
    相关资源
    最近更新 更多