Jump to content
Sign in to follow this  

VEX: If statement

Recommended Posts

Posted (edited)

How do you run an 'if' statement on a string in vex?

    @Cd = set(1,1,1);

will work but if I were to run it over a string attribute it errors with 'invalid assignment from string to float'

    @Cd = set(1,1,1);

I know that running @shape="box"  blast works so I tried it with just a single '=' also, but this errors too.




Edited by garf

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this