取消
显示结果 
搜索替代 
您的意思是: 

Case structure based on a parameter

已解决!
转到解答

Hi everybody!

 

So I was wondering if we could create a case in a case structure, that's based on a parameter.

 

So here is what I mean:

I have a case structure inside a for loop (i=0,..,N-1). I would like for the case structure to have 3 cases: default, i=0 and i=N-1.

The problem is that N can change from time to time. It is not a fixed value.

 

Therefore, is it possible to create a case that's litterally "N-1" ?

 

 

Thanks in advance!! 🙂

 

Valentine

0 项奖励
1 条消息(共 4 条)
3,084 次查看
解答
接受人 VGans

No.

 

But why couldn't you put the N into the equation that determines which case to run.  You do the calcualtions and comparisons in the code leading up to the selector terminal.

0 项奖励
2 条消息(共 4 条)
3,070 次查看

Thanks I didn't even think about that. So stupid! 😄

 

Thanks a lot! 🙂

0 项奖励
3 条消息(共 4 条)
3,067 次查看

Maybe something like this:

 

N.JPG

0 项奖励
4 条消息(共 4 条)
3,064 次查看