Passage
Ye are my friends, if ye do whatsoever I command you.
Ye are my friends, if ye do whatsoever I command you.
John 15:12 This is my commandment, That ye love one another, as I have loved you.
John 15:13 Greater love hath no man than this, that a man lay down his life for his friends.
John 15:14 Ye are my friends, if ye do whatsoever I command you.
John 15:15 Henceforth I call you not servants; for the servant knoweth not what his lord doeth: but I have called you friends; for all things that I have heard of my Father I have made known unto you.
John 15:16 Ye have not chosen me, but I have chosen you, and ordained you, that ye should go and bring forth fruit, and that your fruit should remain: that whatsoever ye shall ask of the Father in my name, he may give it you.
The verse centers on "friends", "whatsoever", and "command". It is saying that the verse draws attention to "friends" and "whatsoever", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 13's "Greater love hath no man than this..." into verse 15's "Henceforth I call you not servants for...", so "friends" and "whatsoever" belong inside that flow. In John context, the local focus is the identity of Jesus, new birth, eternal life, and belief and unbelief.
A plain takeaway is to answer the verse's own emphasis on "friends" and "whatsoever" with trust shaped by these words, not by a vague optimism outside the passage.