---
title: "then and??"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/12806-then-and"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "sven"
published: "2001-11-24T19:46:00.000Z"
updated: "2001-11-24T20:33:00.000Z"
replies: 2
views: 176
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/asp/12806-then-and"
---

# then and??

## #1 — sven, 2001-11-24T19:46Z

Vet inte om detta funkar. Det gör det kanske inte men kan någon i så fall hjälpa mig?

```
hemal = Request.Form("hmal")
bomal = Request.Form("bmal")
If hemal > bomal THEN
hepoang = 3 AND bopoang = 0
ElseIf hemal < bomal THEN
hepoang = 0 AND bopoang = 3
Else
hepoang = 1 AND bopoang = 1
End If
```

Det funkar med hepoang med inte vid ett oavgjort resultat. bopoang skrivs aldrig ut. Vet inte om man kan använda then och and.

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

## #2 — LarsG, 2001-11-24T19:48Z

```
If hemal > bomal THEN
hepoang = 3 : bopoang = 0
ElseIf hemal < bomal THEN
hepoang = 0 : bopoang = 3
Else
hepoang = 1 : bopoang = 1
End If
```

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

## #3 — sven, 2001-11-24T20:33Z

Jo men det funkade ju. Tack Lars. Du är en pärla. :)

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/12806-then-and
