---
title: "if sats problem"
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/74668-if-sats-problem"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "Pellefant"
published: "2003-04-22T08:35:16.000Z"
updated: "2003-04-22T12:34:03.000Z"
replies: 1
views: 201
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/php/74668-if-sats-problem"
---

# if sats problem

## #1 — Pellefant, 2003-04-22T08:35Z

Hej!

Vad kan tänkas vara fel här?

```
if($list=="new" && $typ=="column" ){
```

Värdena hämtas in med

$list = $\_GET\['list'\];
$typ = $\_GET\['typ'\];

Det verkar som att om $list är "new" så räcker det för att utföra if satsen.

Permalänk: https://www.webforum.nu/p/74668

## #2 — RiC]-[iE, 2003-04-22T12:34Z

Testa att lägga till extra parenteser:

```php
if( ( $list=="new" ) && ( $typ=="column" ) ) {
```

Permalänk: https://www.webforum.nu/p/1019157

---

Tråden på webben: https://www.webforum.nu/amne/php/74668-if-sats-problem
