1
我有如下公式嵌套EL表達式失敗
#{af:formatNamed2(repo['PARAM'],'NUMBER', someScope.CurrentWorkerIndex, 'TOTAL_NUMBER', someScope.TotalNumberOfWorkers)}"
我需要的值到狀態之間切換的最後PARAM如下:
someScope.TotalNumberOfWorkers < 0 ? 500 : someScope.TotalNumberOfWorkers
我嘗試了所有這些,但失敗:
測試之一:
#{af:formatNamed2(repo['PARAM'],'NUMBER', someScope.CurrentWorkerIndex, 'TOTAL_NUMBER', [someScope.TotalNumberOfWorkers < 0 ? 500 : someScope.TotalNumberOfWorkers])}"
測試二:
#{af:formatNamed2(repo['PARAM'],'NUMBER', someScope.CurrentWorkerIndex, 'TOTAL_NUMBER', (someScope.TotalNumberOfWorkers < 0 ? 500 : someScope.TotalNumberOfWorkers))}"
請建議