From 00a9001fd470d9276f9731cb3bd07946337e96eb Mon Sep 17 00:00:00 2001 From: akashbavlecha Date: Wed, 15 Jan 2025 16:51:15 +1100 Subject: [PATCH] var scope errors on ColdFusion --- data/en/querysome.json | 4 ++-- data/en/structsome.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/en/querysome.json b/data/en/querysome.json index 0483eb64f..ff89d5981 100644 --- a/data/en/querysome.json +++ b/data/en/querysome.json @@ -42,13 +42,13 @@ { "title":" The simple Querysome example", "description":"Here,we've example to check whether the 75 is exists or not in myquery mark column value.", - "code":"\r\n var myQuery = queryNew(\"id,name,mark\",\"integer,varchar,integer\",[[1,\"Rahu\",75],[2,\"Ravi\",80]]);\r\n result = querySome(myQuery , function(details){\r\n\t return details.mark IS 75;\r\n });\r\n writeOutput((result ? \"Some\" : \"No\") & \" matches Record found!\");\r\n", + "code":"\r\nmyQuery = queryNew(\"id,name,mark\",\"integer,varchar,integer\",[[1,\"Rahu\",75],[2,\"Ravi\",80]]);\r\n result = querySome(myQuery , function(details){\r\n\t return details.mark IS 75;\r\n });\r\n writeOutput((result ? \"Some\" : \"No\") & \" matches Record found!\");\r\n", "result":"Some matches Record found!" }, { "title":"The Query Member Function example", "description":"Here,we've example to check whether the 85 is exists or not in myquery mark column value using query member function.", - "code":"\r\n var myQuery = queryNew(\"id,name,mark\",\"integer,varchar,integer\",[[1,\"Rahu\",75],[2,\"Ravi\",80]]);\r\n result = myQuery.Some(function(details){\r\n\t return details.mark IS 85;\r\n });\r\n writeOutput((result ? \"Some\" : \"No\") & \" matches Record found!\");\r\n", + "code":"\r\nmyQuery = queryNew(\"id,name,mark\",\"integer,varchar,integer\",[[1,\"Rahu\",75],[2,\"Ravi\",80]]);\r\n result = myQuery.Some(function(details){\r\n\t return details.mark IS 85;\r\n });\r\n writeOutput((result ? \"Some\" : \"No\") & \" matches Record found!\");\r\n", "result":"No matches Record found!" } ], diff --git a/data/en/structsome.json b/data/en/structsome.json index 2f0caa917..a352c3349 100644 --- a/data/en/structsome.json +++ b/data/en/structsome.json @@ -42,13 +42,13 @@ { "title":"The simple StructSome example", "description":"Here we have simple example about structsome function.", - "code":"\r\nvar struct={\"Name\":\"Raja\",\"age\":20,\"mark\":80};\r\nresult = structSome(struct,function(key,value){\r\n\treturn key IS \"Name\"\r\n});\r\nwriteOutput((result ? '' : 'No')& \" Key Exists.\")\r\n", + "code":"\r\nstruct={\"Name\":\"Raja\",\"age\":20,\"mark\":80};\r\nresult = structSome(struct,function(key,value){\r\n\treturn key IS \"Name\"\r\n});\r\nwriteOutput((result ? '' : 'No')& \" Key Exists.\")\r\n", "result":"Key Exists." }, { "title":"The structSome member function example", "description":"Here we have simple example about structsome as member function.", - "code":"\r\nvar struct={\"Name\":\"Raja\",\"age\":20,\"mark\":80};\r\nresult = struct.some(function(key,value){\r\n\treturn key IS \"average\"\r\n});\r\nwriteOutput((result ? '' : 'No')&\" Key Exists.\")\r\n", + "code":"\r\nstruct={\"Name\":\"Raja\",\"age\":20,\"mark\":80};\r\nresult = struct.some(function(key,value){\r\n\treturn key IS \"average\"\r\n});\r\nwriteOutput((result ? '' : 'No')&\" Key Exists.\")\r\n", "result":"No Key Exists." } ],