Skip to content
Advertisement

Tag: logic

How to make combination pattern like this

screenshoot here i need help how to combination 4 field be as in a picture using javascript Examples Field1 : [1,2] Field2 : [3,4] Field3 : [5,6] Field4 : [7,8] Result Output : 1357 * 1358 * 1367 * 1368 * 1457 * 1458 * 1467 * 1468 * 2357 * 2358 * 2367 * 2368 * 2457 * 2458

Calculation based on variable containing multiple possible substrings

I have 2 variables (source and platform) that has results such as: “Source”: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 Edg/100.0.1185.44 etc. “Platform”: Win32 etc. I want to create 2 new variables (device and system), “extracted” from the above ones. I found some code, but I don’t know how to implement it in spss syntax

Print number patterns in JavaScript

I want to print numbers in pattern as below also I need this to print using only one for loop not in if condition inside for loop. If I give s = 7 the output pattern would be 7, 5, 3, 1, 3, 5, 7 If s=6 then output is 6, 4, 2, 4, 6 This is what I tried

Advertisement