【问题标题】:Get the Highest Value in Livecode在 Livecode 中获得最高价值
【发布时间】:2015-01-02 09:28:49
【问题描述】:

我有三个具有以下值的变量...

put 10 into var1
put 7 into var2
put 2 into var3

如何获得最高值?对于这个例子,我想返回 10 并显示“10 是最大的数字”。我怎样才能做到这一点?

【问题讨论】:

    标签: max livecode highest


    【解决方案1】:

    这在任何编程语言中都是相当标准的。

    put max(var1,var2,var3) into myMax
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      相关资源
      最近更新 更多