Database: UStoreScriptFunction8
Item Details: 共通関数定義
spec_version | 1 |
---|---|
content | function add(x, y) { if (isEmpty(x) || isEmpty(y)) return null; return x + y; } function div(x , y) { if (isEmpty(x) || isEmpty(y)) return null; return x / y; } function redOx(x, y) { if (isEmpty(x) || isEmpty(y)) return ""; return x / y; } function redPar(x, y) { if (isEmpty(x) || isEmpty(y)) return ""; return x / (x + y) * 100; } function isEmpty(v) { return v == null || v == ""; } |
History
- Create 2011-12-20T18:01:34+09:00 by test