Hi Brandon,
I don't think you need any tests here. When you create awards, it is empty.
If it is still empty when you get to the for loop, the code in the for loop
is not executed.
Here is an illustration:
julia> awards = Float64[]
0-element Array{Float64,1}
julia> function foo()
for award in awards
println("There are awards")
end
end
foo (generic function with 1 method)
julia> foo() # Note: Nothing printed because awards is empty.
julia> push!(awards,1)
1-element Array{Float64,1}:
1.0
julia> foo()
There are awards
Hope this helps.
On Thursday, January 14, 2016 at 5:14:18 AM UTC+8, Brandon Booth wrote:
>
> Thank you, I wouldn't have caught that in million years. The feed may not
> include awards so that is my check to see if there are any. I can use size
> or some other test though.
>