python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
AWK comparision after sub
I don't understand why AWK doesn't compare properly after using the sub() function.
When I run:
echo -e "LG:1000\nLG:3" | awk '{aa=$1; sub("LG:","",aa); if(aa <= 20) {...
Fraca
Votes: 0
Answers: 0
Is there really no in() comparison operator for Swift?
Starting to code in Swift. Previous experience with other languages. I am looking for an in() comparison for if statements as I have a list of values I want to compare to. In other languages I woul...
drazen90909
Votes: 0
Answers: 2
I have 3 variables which will return true or false values and i need to compare those 3 variables i need to return values i have tried below code
but this code is working only all the three variables are true please suggest for other conditions it is not working.
i would like to know how all the below condition executes.
//this is the functio...
veeresh Mattigajam
Votes: 0
Answers: 1
Find index of number in array Javascript
I have got this issue where I want to return the index of the number in the array which is smaller the one before it. For eg. in this array [6, 8, 10, 2, 4], I want the function to return 3 (which is ...
Chittebabu
Votes: 0
Answers: 3