sirzrx Posted November 13, 2004 Report Share Posted November 13, 2004 INPUTS = h and p OUTPUT = a ill use this syntax to move across a long constant array table. this is a Formula Node like C++ Programing ---------- if(h=40) { a=1; } if(h=50) { a=9; } if(h=60) { a=13; } if(h=75) { a=17; } a=a-p; ------- WHY THE OUTPUT IS ALWAYS THE LAST a VALUE? should i use switch-case if i have... can some post an example?.....Thx for ur help! ------------------------------------- By Sir ZRX! Quote Link to comment
jpdrolet Posted November 14, 2004 Report Share Posted November 14, 2004 INPUTS = h and pOUTPUT = a ill use this syntax to move across a long constant array table. this is a Formula Node like C++ Programing ---------- if(h=40) { a=1; } if(h=50) { a=9; } if(h=60) { a=13; } if(h=75) { a=17; } a=a-p; ------- WHY THE OUTPUT IS ALWAYS THE LAST a VALUE? should i use switch-case if i have... can some post an example?.....Thx for ur help! ------------------------------------- By Sir ZRX! 2641[/snapback] The correct syntax to test an equality is if (h==75) . As written, if (h=75) assigns 75 to h and tests its value to TRUE, since it is different from 0. Quote Link to comment
sirzrx Posted November 22, 2004 Author Report Share Posted November 22, 2004 THX is working right now thx ^^ Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.