cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Convert 1x1 vector to scalar in if statement

dsochor
5-Regular Member

Convert 1x1 vector to scalar in if statement

In the attached Prime worksheet I am trying to use the "logical or" function within a nested if statement. I believe the error is due to db being a 1x1 vector. Is there a way to convert this from a 1x1 vector to a scalar value?

1 ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald II
(To:dsochor)

Daniel Sochor wrote:

...r. Is there a way to convert this from a 1x1 vector to a scalar value?

Just use the standard vector index ... v[0

Stuart

View solution in original post

3 REPLIES 3
StuartBruff
23-Emerald II
(To:dsochor)

Daniel Sochor wrote:

...r. Is there a way to convert this from a 1x1 vector to a scalar value?

Just use the standard vector index ... v[0

Stuart

dsochor
5-Regular Member
(To:StuartBruff)

Thank you Stuart

StuartBruff
23-Emerald II
(To:dsochor)

No worries, Daniel.

Top Tags