displaying top 100 results
Tracker Issue Elvis Operator Bug 2
3746251 CF-4200234 Language : Functions Fred Leefarr Elvis Operator Bug 2 Problem Description:
Elvis operator does not work as expected when using a variable for the array index
Steps to Reproduce:
?
function test() {
var arr = ["a", "b", "c"];
var index = 1;
var result = arr
Tracker Issue Elvis Operator Bug
3746249 CF-4200233 Language Fred Leefarr Elvis Operator Bug Problem Description:
The elvis operator does not work when using a variable as a struct key.
Steps to Reproduce:
{code:java}
?
function test() {
var foo = {
test_123456 = "result"
};
var key = "test_123456";
var result = foo