脚本任务输出以检查 if 条件
从脚本任务中,我得到输出 { “ ResultsetCount”:1, “受记录相关”:0, “结果集”:[ { “ Rowcount”:1, “行”:[ { “标志”:1 } 这是给 } ],
如何构建表达式以检查标志是否为1
@equals(activity('script1')。output.resultsets.flag,1) 这不起作用
From the script task I get an output
{
"resultSetCount": 1,
"recordsAffected": 0,
"resultSets": [
{
"rowCount": 1,
"rows": [
{
"flag": 1
}
]
}
],
how to build an expression to check if the flag is 1
@equals(activity('Script1').output.resultSets.flag,1)
This is not working
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用此表达式在IF条件下从脚本活动输出中获取所需的输出值。
Use this expression to get the required output value from script activity output in If Condition.
@equals(activity('script1')。输出。resultsets [0] .rows [0] .flag,1)。如果您设置为变量,则可能需要转换为int,并且其类型为字符串
@equals(activity('Script1').output.resultSets[0].rows[0].flag,1). May be needed to convert to int if you are setting with to variable and its type is string