开发者

AppleScript: Compare references in a list

How do I make this output true and not false:

{item 1 of {4}, item 1 of {5}} = {4, 5}

I k开发者_运维技巧now you can do this...

{4, 5} = {4, 5}

...but I need to do something more complex.

Is that possible?


It probably has to do with the binding of the = operator, e.g. it gets evaluated before the lhs and rhs expressions are evaluated.

For example, this is true:

set x to {item 1 of {4}, item 1 of {5}}
x = {4, 5}


nmok i got it

set c to {item 1 of {4}, item 1 of {5}}
c is equal to {4, 5}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜