Questions tagged [expression]

Combination of several programming symbols and values intending to produce a result

An expression is code before it gets evaluated. That is, evaluating an expression will give you a result.

Expressions can consists of combinations of variables, constants, operators, function calls, or whatever constructs are available in that language.

Many s have an expression data type, and an evaluation function (often called eval), where calling eval(an_expression) will calculate a result.

Related tags

7598 questions
2
votes
1 answer

Boolean Algebra expression conversion in C#

I am working on converting the boolean algebra expression something like this NOT(a AND b) = (NOT a) OR (NOT b) NOT (a OR b) = (NOT a) AND (NOT b) a AND NOT (b AND c) = (EQ a) AND ( ( NOT b) OR ( NOT c) ) But, somehow it is not working for…
mesha
  • 31
  • 5
2
votes
1 answer

SSIS: Precedence Constraint not working as expected

Referring to the below snapshot, I am trying to use "Logical AND All constraint must be evaluated to true". In Expression, I am trying to equate Variable value with the current date and when checking it on evaluation expression it shows true when…
2
votes
1 answer

Linq expression, get parameters?

I got a linq expression, internal T Execute(System.Linq.Expressions.Expression> expr) { var paramInt = ??; var paramString = ??; } I call this method using this: Expression> myExpression2 =…
Patrick
  • 5,442
  • 9
  • 53
  • 104
2
votes
0 answers

How to order by Query dsl NumberExpression column

In mariadb, I created the function to calucate distance between user point and place point /* create function */ DELIMITER $$ CREATE FUNCTION `u_st_distance_sphere`(`user_point` POINT, `place_point` POINT) RETURNS double …
hwijin
  • 21
  • 1
2
votes
1 answer

How to get part of a Excel file name in SSIS Expression

I have an SSIS Package that picks up only current date files from a particular folder the name of the Excel files changes dynamically Filename: XYZDailySettleTransaction_20220314_040117.xlsx I am able to get XYZDailySettleTransaction_20220314.xlsx…
Adnan Wadekar
  • 53
  • 1
  • 6
2
votes
3 answers

Conditional Regex searches

I'm attempting to create a Regular Expressions code in Java that will have a conditional search term. What I mean by this is let's say I have 5 words; tree, car, dog, cat, bird. Now I would like the expression to search for these terms, however is…
confused
  • 41
  • 2
2
votes
1 answer

How to convert to lowercase a specific pattern in multiple java classes using regular expressions?

I am looking to find a way to convert a specific pattern to lower case for an entire Java project (target: *.jrxml). Basically, I would like to find all expressions matching the following pattern: $F{TEXT_EXPRESSION} and then send the…
Charles Morin
  • 1,449
  • 4
  • 32
  • 50
2
votes
1 answer

What are the redexes in this Haskell expression?

I am learning Haskell for a university course and i have a question about reducible expressions (redexes). I understand the concept yet I still have some questions that I can't seem to figure out on my own. Lets say you would want to find all the…
2
votes
4 answers

How can I convert a fraction expression into a character vector in R?

Hello an thanks for the help. I want to convert the expression: x / y (e.g. 1298 / 1109) into a character vector: "x / y" (e.g. "1298 / 1109") using R. I have tried it with as.character(x/y) and with as.character.Date(x/y) but this only turns the…
Mikado8787
  • 35
  • 4
2
votes
1 answer

SSIS Expression to append file extension

I'll get a Full filepath(FilePath and FileName) from a variable (@[User::V_FullPath]) as C:/Users/ABCD/Documents/Development/SampleFile.txt I have a file with the same name but with .xlsx (SampleFile.xlsx) in another folder(A) that I want to copy…
Equator
  • 77
  • 8
2
votes
1 answer

Is it legal to have expressions not assigned to values in Javascript functions?

I'm sure this is a duplicate but I cannot find the original question, so please link to it if you know of it. In Javascript I am currently writing a function and I am tempted to write it like this: function toggleDropdown() { isOpen() ?…
Ryan Peschel
  • 11,087
  • 19
  • 74
  • 136
2
votes
1 answer

Regex CSV : Match quotes that are not delimiters

I'm working on a csv file that was badly built, I created a regex that only matches quotes that ARE NOT delimiters, in this link I succeeded, however do you think you can optimize my regex to have only quotes and not the letters around, the…
user17686240
2
votes
1 answer

assembly-time evaluation of floating-point expressions

I am currently familiarizing myself with the possibilities of Turbo Assembler 2.0; I was happy to find out that float constants can be specified as follows. SomeVariable dd 72.0; corresponds to 042900000h I was assuming that it is possible to…
Codor
  • 17,447
  • 9
  • 29
  • 56
2
votes
2 answers

Can I make a regular expression negative lookbehind assertion apply to the whole expression?

I'm using Python re to try to make a regular expression which finds all camel cased words not starting with an exclamation point (!). Here is what I have: (?
Sunjay Varma
  • 5,007
  • 6
  • 34
  • 51
2
votes
1 answer

Modify a Shiny reactive expression with two forms of user input

I want to use a reactive expression that can be updated in either of two ways. Below is a very simple example with either numeric input or a reset button to set the expression back to its original state (in practice the expression is more complex,…
Marcus
  • 21
  • 1