Project

General

Profile

Actions

Feature #45867

closed

Allow easy conditions against multiple values/a list

Added by Stefan Neufeind over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2013-02-26
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently:
[globalVar = GP:L = 3,GP:L = 28,GP:L = 27,GP:L = 24]

Maybe we could introduce some new operator to check against a list?
[globalVar = GP:L in (3,28,27,24)]

Or maybe use some split-syntax?
[globalVar = GP:L = 3|28|27|24]


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #39700: TypoScript: Allow easy comparison against multiple valuesClosed2012-08-11

Actions
Actions #1

Updated by Stefan Neufeind over 11 years ago

The "secondary comparisons" (here: everything after "globalVar =") are exploded on the comma. But splitting on the pipe-char would be possible. Maybe with an in-keyword to not change anything on the current equal-comparison (=)?

[globalVar = GP:L in 3|28|27|24]

Actions #2

Updated by Michael Stucki over 11 years ago

The syntax looks confusing to me. IMHO the SQL like variante looks much better: [globalVar = GP:L in (3,28,27,24)]

Actions #3

Updated by Stefan Neufeind over 11 years ago

Just found #39700 ... dejavu ... we already implemented/merged it.

Actions #4

Updated by Michael Stucki over 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Duplicate.

Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF