Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

Dart (Dead Code) in a conditional statment

Am new to dart learning more about dart. for tenary opertors in below code, else is considered a dead code. // conditional expressions bool isPublic = true; var visibility = isPublic ? "...
marvin Kurland's user avatar
0 votes
0 answers
44 views

MariaDB building dynamic JSON_ARRAY conditionally, prevent casting JSON_OBJECT to string and double-quoting

USE CASE: We want to create a JSON_ARRAY containing various JSON_OBJECTS. These objects are added if (and only if) certain conditions are true. If they are false, then that object should not be added ...
Norman's user avatar
  • 1
0 votes
1 answer
17 views

Excell Sum array by two conditions one of which is partial text string

I have a table with multiple sheets. In sheet1 I want to sum the values of particular cells from a range in sheet2 by two conditions. Cells that are to be summed are in different rows and columns. ...
Васил Недялков's user avatar
0 votes
1 answer
58 views

Stop email from sending if it isn't the first Monday of the month

I have a script that sends emails out every Monday. How would I update the below so that the email doesn't send unless it's the first mMonday of the month. .CreateReports .CreateNewEmail ...
user26998577's user avatar
0 votes
0 answers
40 views

Why do my Conditional Fields Pro repeater groups have different formats?

I'm making a conditional form using Conditional Fields Pro for Contact Form 7 in WordPress and my repeater groups are weirdly become a completely different format after the 1st group (and it's ugly as ...
Albert Pace's user avatar
0 votes
1 answer
28 views

How to return top X unique values in a column by the condition in another column

I am trying to return top selling companies for different conditions (size) and top selling companies' price in the table F:J. I need to do this for multiple reports with thousans of rows of data, so ...
Çağlar's user avatar
0 votes
2 answers
67 views

AzureDevops yml pipline if condition for a variable not working

variables: - name: RerunFailedTestCase ${{if and(ge(variables['system.clock.hour'], 19), lt(variables['system.clock.hour'], 23)) }}: value: 'false' ${{ else }}: value: 'true' have created ...
Mayank Raghuwanshi's user avatar
1 vote
2 answers
59 views

SQL query to return the value only if another dependant is not 0

I want to sum up a value only if another dependent is not 0 and then roll up the value after that. Looking for contribution of team A to be 115 (75+40) and excludes -28 as it has 0 sales. This is the ...
Jerome Lee's user avatar
0 votes
3 answers
155 views

Can't you use `,` operator to define a variable in a while loop's expression in C?

Why can't we define a variable in while loop's condition expression in the same way as we can define in a for loop? For example: #include <stdio.h> int main() { while((int c = getchar()) != ...
Greeshma's user avatar
-3 votes
1 answer
50 views

Adding numbers in Excel, based on a condition [closed]

What I am wanting to do is probably a straightforward issue but many, many Google searches have failed to uncover the right syntax - in Excel, I'm wanting to say something like: 'if A1 < 0, then ...
Nick Daisley's user avatar
0 votes
0 answers
34 views

Excel: Multiple Conditional Formatting Based on the Value of Another Cell/Column? [duplicate]

Problem I am trying to develop some very simple logic that says if column H2 and below is RED then color column J2 and below RED. This will apply also when I try to format the values to yellow or ...
Jaskeil's user avatar
  • 1,182
1 vote
2 answers
70 views

Microsoft question regarding IIf statement or a better solution

I am working on a report that needs international addresses that are correct to the country's standard to where the mail is going. Some countries want the postal code before the City, others don't and ...
Chuck S's user avatar
  • 13
-2 votes
0 answers
13 views

Multiple condition coverage? [closed]

Given the following decision: IF X < 5 OR Y > 10 THEN and the following test inputs: X=6 and Y=12, X=5 and Y=10 , which of the following additional sets of test inputs will ensure that full ...
Nial QA's user avatar
0 votes
1 answer
28 views

How can I change certain values in a column based on multiple conditions, leaving others as they are if the conditions aren't met?

I have a dataset that I frequently pull as it is updated and analyze in R. I am trying to figure out how I can change values in a column if they meet 2 conditions and otherwise keep the existing value....
Erica S's user avatar
0 votes
1 answer
113 views

C++ All Int are valid for the if statement | if(choice == 1) [closed]

I've got some probably simple questions: why is every Integer accepted as a valid input in the if statement and why is the code following the if statement not being executed #include <iostream&...
MagOS's user avatar
  • 5
0 votes
2 answers
54 views

Compare two strings that are not the same in Excel and Ouput True/False depending on contents

Table in questions has 3 rows, one of the rows has: applicable, NA, Tailored in it's columns. The other column has the words: applicable, Not Applicable, Heading, Deleted/Reserved" I have figured ...
Luke Taylor's user avatar
0 votes
1 answer
29 views

Finding error when use conditional statement in DAX in powerbi

The think I want to classify a numerical variable named, "customer_age" to "AgeGroup". But when I use switch statement in new measure then it gives a message that, the column "...
Rafi Ahmed's user avatar
0 votes
2 answers
56 views

conditional taxonomies filtering plugin in wordpress website

I would like to build an website which mostly will be events. So my question is the following: Is any plugin where I can filter by conditional taxonomies. For example, I have countries Taxonomy and ...
Do Ionescu's user avatar
1 vote
2 answers
64 views

Searching over multiple columns and row to see if value exist in a table for Excel VBA

Hello everyone I am doing a project and need some VBA coding assistance to automate this requirement. Requirement: Outcome is to perform a check for a particular users under the same 'category' we ...
Blake J Park's user avatar
0 votes
3 answers
53 views

Update value of pandas dataframe column with leading zero where the length of the value is equal to 2

I have an example pandas data frame (df) with the following values: Name Label Cat A12 Dog 67 Mouse 20 Monkey 10.8 Parrot V20.6 I need to update the value of the label column, which has a mix ...
user23237706's user avatar
0 votes
2 answers
54 views

Issue writing pyspark or sql query to conditionally count column

Trying to write a query that correctly creates and populates an ID column that counts until it encounters a new non-null value in the Data column, at which point it restarts at 1. Here's an example of ...
PracticingPython's user avatar
0 votes
1 answer
54 views

numpy.where build conditional filter in python

How do I build a numpy filter, adding each filter element depending on logic, rather than initiating the entire filter at once? I want to build a filter like this: filter = [] IF A == 0: filter....
Josh's user avatar
  • 25
1 vote
0 answers
26 views

Is it possible to include an equation with a condition that depends on a variable in another equation?

I have a question regarding GAMS basics. Is it possible to include an equation with a condition that depends on a variable in another equation? Specifically, I am trying to include an equation for ...
Alaa Alsaffar's user avatar
0 votes
1 answer
20 views

Export variable in Makefile with ifeq, then access variable elsewhere

Within a Makefile, I am trying to export a variable conditionally using an ifeq block, and then access that variable in a second ifeq block. Here's a sample of my code structure: ifeq ($(CONDITION),...
Curious's user avatar
  • 31
0 votes
1 answer
39 views

Code working in Jupyter notebook but not working in IDLE

I am tying to do conditional formatting through color code using below code. This works fine with jupyter notebook but is not working in IDLE python 3.7 (64). ` import numpy as np import pandas as ...
Saurabh's user avatar
0 votes
0 answers
26 views

How to dynamically generate Airflow DAGs with groups, task and conditionals?

I am trying to create a bunch of python scripts to automate the creation of DAGs for Airflow 2.9.x. The idea is to list all tasks in Excel as these DAGs will have to orchestrate tasks for many ...
CesarA's user avatar
  • 107
0 votes
0 answers
14 views

Pinescript - check for 7 consecutive closes on one side of SMA - Problem

My pinescript should print colored arrows above and below the seventh close on one side SMA. If I only have 3 conditions, then it works... But I want to check 7 closes. I tried making a for loop but ...
user2264694's user avatar
0 votes
1 answer
44 views

Anylogic : Hold block which condition on an event timeout

Hi I have a problem with hold block, I want to use hold block on certain condition which will unblock when a event "night" occur, but I can't set up the condition by using true or false on ...
Agung Limowa's user avatar
0 votes
0 answers
25 views

Need help on finding a solution to my Work Flow project

When I run a condition statement on my workflow for when an item or a file is modified, I am trying to only throw an exception to send an email when an item is marked completed in the status category. ...
James-G's user avatar
0 votes
3 answers
36 views

Join with a condition between two values

I have two tables [sales] and [payments] and I want to see if a payment is made between the sale's product start date and the end date of the sale BUT sometimes the product hasn't started yet! Sales ...
Phil Tucker's user avatar
0 votes
3 answers
44 views

Excel VBA code for hiding/showing rows when one specific cell is value either 0 or above 0

I can't seem to make this work. It is supposed to unlock the sheet, change the row status and lock back with the same PW. Any ideas what might be wrong? I'm very new to VBA and this code is made using ...
jonathan Jonfan brandstrup's user avatar
0 votes
2 answers
20 views

Enable single server and cluster mode both for ElastiCache

I am trying to conifgure redisson.yaml something like below redis: mode: ${REDIS_MODE:single} # Default to single mode if REDIS_MODE is not set # Configuration for single Redis server ...
Ganesh Prajapati's user avatar
1 vote
3 answers
54 views

For every instance if "A" in Column1, create a new column with all values associated with "A" from Column2

Here is an example data frame: df <- data.frame(Key = c(rep("A", 2), rep("B", 4), rep("C", 3), rep("D", 2)), DataID = round(runif(11, min = ...
Rhenny's user avatar
  • 11
1 vote
1 answer
55 views

Cloudformation Conditional Fails with expected type: JSONObject, found: JSONArray

I've read a bunch of threads here and other places but can't determine what I'm missing here. Trying to deploy a DynamoDB Global table, however we have only one region in our lower development ...
TheRealJoeSchmoe's user avatar
1 vote
2 answers
49 views

Trying to use terraform if/else statement on a block in terraform

I am new to terraform and stuck on something I think can be done but don't know. I am trying to see if there is a way to make the delegation block in azure subnet optional from an if/else. I tried to ...
Christopher Beasley's user avatar
0 votes
2 answers
64 views

Conditional creation of some resource items based on variables in Terraform?

I’m exploring Terraform for automated creation of NAT rules on a Palo Alto firewall using the panos_nat_rule_group resource. A NAT rule have multiple options for the “Translated Packet”. We can ...
Arto33's user avatar
  • 23
0 votes
1 answer
41 views

how to plot a function with a condition on the output?

I am trying to figure out how to plot a function with a condition on the output. I've looked into various sites and questions here, but I didn't manage to find a solution to my problem (or at least ...
Damien Dambre's user avatar
0 votes
1 answer
44 views

IF and AND statement syntax/formula with multiple conditions in excel

I am trying to conclude a cell value from 2 categories having numerical inputs derived from the result of a boolean output. For example, I need to evaluate the numerical target of a particular ...
morbid_coder's user avatar
1 vote
0 answers
27 views

How to prevent the same machine to have two rows of data but for a selected condition it will be allowed?

The machines supposedly cannot be duplicated in the DataGridView but for certain condition it can be allowed. while (read.Read()) { if (read["Selected_Problem"] !=...
IZZAT HATTA's user avatar
2 votes
1 answer
35 views

Change style on MouseOver event in reactJS

I've just started learinng react and i dont get that why setHeadingText changes the color onMouseOver event but setColor doesn't import React from "react"; function App() { const [...
Aman_B's user avatar
  • 23
0 votes
0 answers
25 views

React with map and condition

I'm trying to create a column in data-grid react having various values ​​and wanting them to be written in different colors written like this he writes them all in one color.... /* const category = ...
xxiaprile753's user avatar
0 votes
0 answers
9 views

Column Formatting based upon a Group - Even if there is no data in the group

I have report that has formatting on the column in a matrix. I want to column for Total Gross sales to be light grey (=iif(Fields!STATS_GROUP.Value="GROSS", "LightGrey", "...
jCT's user avatar
  • 1
1 vote
2 answers
47 views

How to use map in this situation instead of switch

i want this to be mapping instead of hard coding the cases const wCategory = () => { switch (categoryhovered) { case 1: return <SalePriceCtg /> ...
Farshad Momtaz's user avatar
-1 votes
1 answer
20 views

How to calculate column percent from multiple groups in a T-SQL table?

Hello Stack Overflow community, I have a table that looks similar to the one shown in the picture below. I would like to calculate the column percent for each group in the table. The values in the &...
user11250011's user avatar
1 vote
1 answer
47 views

Cannot convert column into bool with simple filter condition with any operator

I am trying to form filter condition dynamically from dict structure in python and it is very simple condition which is giving below error: Final constructed filter condition: Column<'(CompanyCode ...
rajesh's user avatar
  • 29
0 votes
1 answer
29 views

How i can find missing values in column and convert them into null in spreadsheet

Missing values were incorrectly entered as zeroes, and i need to change them to null values before look for trends. The code i am using to do this is returning an error message. How to solve this How ...
Deep Shikha's user avatar
0 votes
1 answer
51 views

Ansible check output of command and return the incorrected value if a string matched with condition

I write a playbook to check command docker ps --all output then check if there is a names ansiblecontrol in output of line then get the value of images. Here down is my playbook: --- - name: Check and ...
Tran Khang's user avatar
0 votes
0 answers
34 views

Using keyboard.read_key to quit a program on a condition

I'm trying to add functionality to my first project, a number guessing game. I want to allow the user to either enter a number to guess, or press escape to exit the program. I've contained an if else ...
FrogLover92's user avatar
0 votes
0 answers
21 views

Mailjet: display content if variable value is a specific string

I'm passing some variables to a Mailjet template via Zapier. Sometimes the variables will contain no data, and sometimes they will contain certain strings. I'd like to display specific html when ...
tlrichman's user avatar
0 votes
0 answers
14 views

How not to duplicate a complex expression in an if condition and the result expression in Excel [duplicate]

Frequently I want to check a complex condition and if valid, use the result as the result statement such as: =IF(RC2+R1C>1.33,RC2+R1C,"") Here, in a simple example, the RC2+R1C is ...
Jack's user avatar
  • 11

1
2 3 4 5
388