用 If 语句比较存储字符串和硬写字符串

Compare stocked string and hard written string with If Statement

我想比较两个字符串:

我想将它们与 if-statement 进行比较,但它不起作用。 这是我使用的行:

Command | Target           | Value |<br>
if      | ${i}=="mystring" |       |

即使字符串不同并且我在网络上找不到任何关于 Katalon 的文档,此语句始终会出现在 "success" 的情况下。

也许你可以试试 -

verifyEval | ${i}=="mystring"  | true

如果两个字符串相同,则应 return 为真,否则为假。