# If statements

Page 1 of 1

## 4 Replies - 3754 Views - Last Post: 19 November 2010 - 10:29 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=201044&amp;s=7f58b0d45fb569314f3974bde489a025&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 DarkLord9111

Reputation: 0
• Posts: 7
• Joined: 17-November 10

# If statements

Posted 19 November 2010 - 09:55 AM

i have to write an If statement that assigns 0 to intX when intY is equal to 20. This is what i got

IF IntY = 20 Then intX = 0
End IF
Is This A Good Question/Topic? 0

## Replies To: If statements

### #2 maj3091

• D.I.C Lover

Reputation: 330
• Posts: 1,997
• Joined: 26-March 09

## Re: If statements

Posted 19 November 2010 - 09:57 AM

OK, it looks fine.

What problem do you have with it?

### #3 DarkLord9111

Reputation: 0
• Posts: 7
• Joined: 17-November 10

## Re: If statements

Posted 19 November 2010 - 10:09 AM

I have to write an If statement that multiplies decPayRate by 1.5 when hours is greater than 40

This what i got

IF decPayRate > 40 then *40

### #4 DarkLord9111

Reputation: 0
• Posts: 7
• Joined: 17-November 10

## Re: If statements

Posted 19 November 2010 - 10:19 AM

i have to write an IF statement that sets the variable intfees to 50 when the boolean variable blnIsMax is True

IF intfees = 50 then blnIsMax = true

• Saucy!

Reputation: 6246
• Posts: 24,014
• Joined: 23-August 08

## Re: If statements

Posted 19 November 2010 - 10:29 AM

Merged what are, for all intents and purposes, duplicate topics.

Why do I get the feeling you're sitting in an exam, looking for us to feed you answers? Because if you weren't, why wouldn't you just try these in your compiler?