62,062 questions
Score of 0
1 answer
122 views
Script to check installed version doesn't execute all 'IF' commands
I have the following code that checks remote servers for the version of VM Tools, and acts accordingly depending on which version is installed.
NOTE: I cut the code substantially as it wouldnt let me ...
Score of -1
3 answers
243 views
How do I copy an array N amount of times via formula, stacking it in the end of other
My company uses a program for material usage calculation. It has very similar table system. I want to replicate it. Place in a formula below using numbers from placed arrays and then via PowerAutomate ...
Score of -6
0 answers
70 views
Why is this cmd.exe batch if-statement erroring? [duplicate]
I'm running Windows 11 and when I run the following batch file, after I press the enter key, it displays in the command line console:
100 was unexpected at this time.
\>if /A 100 LSS 10 echo "...
Best practices
0
votes
4
replies
171
views
Is it a good practice to use c++ likelyhood attributes in contract assertions?
Is it a good practice to use c++20's [[likely]] and [[unlikely]] with contract if statements? Are they a good choice optimization-wise?
int foo(int n)
{
if (n < 0) [[unlikely]] {
// ...
Score of -2
1 answer
189 views
Exiting if/elif Statements in Python
I'm currently writing a text-based game to practice if/elif statements a bit and I'm running into an issue with exiting if/elif statements. I want to make it continue on from the initial if/elif ...
Score of 0
0 answers
67 views
ZPL if state in a barcode
About ZPL, I'm trying to put a conditional state in my code.
The idea is to put the left square with petition number in vertical position, with a black box in black and letters in white only if the ...
Advice
2
votes
2
replies
102
views
Bool and int comparisons in C++, and why does putting variable containing integer into if-else goes to if branch?
While in C++ this code:
#include <iostream>
using namespace std;
int main()
{
int a = 1;
cout << (a == true) << endl;
}
will display 1,
this code:
#include <iostream>...
Score of -2
1 answer
114 views
Split Entry into Multiple Rows Based on Cell Value [duplicate]
I am recording data of fertilizers and pesticides of a farm. The farm is divided into many areas about 40.
In each entry it is supposed to include the amount given to each area from 1 to 40.
Most of ...
Score of 0
1 answer
105 views
Nested IF in Excel using Today() [closed]
I have a spreadsheet that tracks daily sales.
Column A is the date, and Column B is the buyer. I have this IF statement:
=IF(B24\<\>""TODAY(),"")
My goal is to enter the ...
Score of 1
1 answer
91 views
If statement not working as intended in powershell script
The code below is to debloat workstations. It works, but the if statement does not work as intended. It removes the app installed, but writes removal failed instead of removal successful.
# Loop ...
Score of -4
1 answer
280 views
how to compute MD5 hash in Google Sheets using a single formula?
Is it possible to implement proper, fully fledged MD5 hashing using only native Google Sheets formulas? Especially since there is no native function like:
=MD5("text")
=ARRAYFORMULA(MD5(A2:...
Score of 0
1 answer
58 views
Jmeter IF condition not considering variable condition based on Regular Expression Extractor
I am defining an if condition in my jmeter. Whenever there is a variable defined in regular expression extractor contains a value then only the next HTTP request must trigger. But the IF condition ...
Best practices
1
vote
10
replies
256
views
If ... continue VS If ... elseif
When I study C++, I find that below 2 codes are same logic when running the code.
If... elseif ... else
for (auto& item : items)
{
if (!item.is_valid) { /* skip */ }
else if (item....
Score of 3
1 answer
147 views
how to get update-able sheet name in google sheets
is there a way how to get updateable sheet name of the active or any other sheet without using scripts - only native formulae allowed and no hardcoding
for example, in the spreadsheet there is a sheet ...
Advice
0
votes
2
replies
53
views
How do I extend my Python cash machine program to handle multiple accounts?
I have made a Python function that simulates a cash withdrawal from an ATM, checking for the correct PIN and sufficient balance before processing.
I have defined a function called cash_machine with ...