# Actionscripting

**URL:** https://forum.kirupa.com/t/actionscripting/7833
**Category:** flash
**Created:** [November 8, 2002, 6:56pm UTC](https://forum.kirupa.com/t/actionscripting/7833 "2002-11-08T18:56:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kaotic](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@kaotic](https://forum.kirupa.com/u/kaotic)
#### Post date: [November 8, 2002, 6:56pm UTC](https://forum.kirupa.com/t/actionscripting/7833/1 "2002-11-08T18:56:31Z")

</div>

in my c++ class, we are working with if/then/else statements and was wondering what , if any similarity does the c++ format have with actionscript?  
if no similarity, please post the proper way to make an if/then/else statement, for example, in c++ it would look somehwt like…

```auto

     if(variable1=random)
          cout<<"Variable One is equal to the random number.";
     else
          cout<<"Variable One is not equal to the random number.";

```

also how does actionscript handle algebraic equations.  
any help is very appreciated

:cyclops:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 8, 2002, 9:53pm UTC](https://forum.kirupa.com/t/actionscripting/7833/2 "2002-11-08T21:53:03Z")

</div>

```auto

if(variable1=="random"){
    trace("it equals random");
}else{

trace("it equals something else");
}

```

havent played with algebra in A/S
